April 9, 2019
For today:
1) Do Homework 8 (due Tuesday evening)
2) Read HFC Chapter 9
3) Work on your project
4) Prepare for a quiz (here's last year's quiz for practice)
Today:
1) Quiz
2) Homework 8 questions
3) HFC Chapter 9
4) Homework 9
For next time:
1) Finish Homework 8 (due tonight)
2) Read Think OS Chapter 9
3) Start Homework 9 (due Friday night)
4) Work on your project
Let's start exercise 9 together.
1) Pull from upstream to make sure you have the most current version of fork.c
2) Compile and run it.
3) We'll draw a thread diagram together.
4) Comment out the exit statement on line 76 (after calling child_code). What happens if the child code doesn't exit? Draw the thread diagram.
5) The homework asks you to test experimentally whether the child and parent processes share their global, heap, and stack segments? How can we do that? What about the code and static segments?