Part I opens with the bookβs most famous analogy. Youβve already seen virtualization happen β four programs sharing one CPU in chapter 2 β so consider this the parable version.
The analogy, drawn out
One physical resource, many convincing virtual copies (dashed). The violet arrows are the OSβs doing β and how it pulls this off is the subject of the next seven chapters.
Tip: βNappingβ has a technical name
The Professorβs trick β snatch the peach while its eater naps β is exactly what you watched in chapter 2βs timeline: at any instant one process runs while the others sit in the ready state (or sleep waiting for I/O), none the wiser. Chapter 4 gives the napping its proper names: time sharing and process states.Note what the dialogue deliberately doesnβt answer: the Studentβs βhow does that work?β The mechanism β how the OS actually snatches a CPU away and hands it to someone else without anyone crashing β is the story of the chapters ahead: the process abstraction, its API, limited direct execution, and then the scheduling policies that decide who eats next.
Check yourself
1.In the peach analogy, what does the peach stand for?
2.The Student objects: "if I was sharing a peach, I would notice." What is the Professor's answer?
3.The Student asks "How does that work?" β and gets no answer. Which question does this dialogue deliberately leave open?