Chapter 1 Homework

  1. Figure out how to list running processes on your computer. (ps -ef will do it on UNIX-based computers.) How many processes are running?
    Choose ten of them, for which you have no clue what they are doing. Figure out what it is they do!
  2. Record every computer you encounter for an entire day. Remember: Try to determine what operating system each computer you encounter is running. (Some you might not be able to discover!)
  3. Write a C program that:
    1. mallocs enough space to hold the string "Hello world!" (Remember you need a 0 on the end!)
    2. Writes "Hello world!" into that buffer.
    3. Prints the contents of the buffer.
    4. Frees the buffer.


    Capture your screen output showing you ran the program.