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
- time share the CPUs among processes
- needs to be transparent to user processes
aproach
- make an illusion for the process that it has its own virtual CPU by multiplexing the processes onto the HW CPUs.
Chapter 7.1 - Multiplexing
xv6 switches CPU from one proc to another in 2 situations :
- 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.
- 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 :