Chapter 1 Homework
- 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!
- Record every computer you encounter for an entire day.
Remember:
- Your laptop, desktop, etc.
- Smart phone, tablet, watch
- Web sites you visit
- ATM machine
- Credit card with a chip
- Cable settop box
- Computer that says when the next subway train is
coming
- How do you enter NYU?
- Computer in taxicab
- Cash register (CVS!)
- Microwave
- More?
Try to determine what operating system each computer you
encounter is running. (Some you might not be able to
discover!)
- Write a C program that:
- mallocs enough space to hold the string "Hello
world!" (Remember you need a 0 on the end!)
- Writes "Hello world!" into that buffer.
- Prints the contents of the buffer.
- Frees the buffer.
Capture your screen output showing you ran the program.