Professional Documents
Culture Documents
CH3 Notes
CH3 Notes
Process, may have text section, program counter where it will get the next instruction to be
executed
Process is active
Context switch-
Threads
1 tab 1 process
If we tap on something in a single tab, another thread will be created. More thread will be created if
we work on a single tab
The situation is possible because when the CPU switch to another process, the system will save state
of the current process and then load the saved state for the new process using the context switch
Thread
one to one
Thread cancellation
Gantt chart
P3 P2 P1
0 7 16 28
P1 P2 P3
0 12 19 28
P2 P3 P1
0 7 16 28
\
Gantt chart
P1 P2 P3 P2 P1
0 2 4 11 18 28