Exercises
Run the
psauxcommand in a Terminal window. Attempt to explain every process that you see listed.Is it possible for your computer to run out of processes? If you think the answer is no, explain why. If you think the answer is yes, devise an experiment to make your computer run out of processes, try it out, and explain what happens. Is there any way to recover from this situation other than rebooting your computer?
Explain the difference between a process and a thread.
Run the Quartz Debug program in the
/Developer/Applicationsfolder. Select “flash screen updates.” Explain how different kinds of programs (Carbon, Cocoa, Swing) use threads differently. Can you explain the different threads running in each of your applications?Type
manvmstatin a Terminal window to review the documentation for thevmstatcommand. Explain what this program does, in your own words. Explain the output of the commandsvmstat-i,vmstat-m,vmstat-s, andvmstat-z.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access