some very important text or definition

code/registers - monospace text in xv6

text important for context, or generally adding some good to know stuff

start of concept / pojem po Slovensky

generally less or equal importance as green text


Chapter 7 - Scheduling

aproach


Chapter 7.1 - Multiplexing

xv6 switches CPU from one proc to another in 2 situations :

  1. sleep & wakeup mechs switches when a proc waits for device or pipe I/O to complete, or waits for a child to exit or waits in sleep syscall.
  2. xv6 periodically forces a switch when procs compute for a long period without sleeping

this forces the illusion that a proc has its own virtual CPU

Challenges when implementating multiplexing :