Please enable JavaScript.
Coggle requires JavaScript to display documents.
Operating System (Shnchorization (Mechanism (Semephore (Alternative…
Operating System
Shnchorization
Mechanism
-
-
-
Semephore
-
-
Has memory (i: int, l: list)
-
Alternative
Wait() -. check s ==0 block, else --
Signal - check pros == 0, if ++, else unblock
Classic
Wait(): --s, check if <0, if block,
signal: ++s, check if process empty, if not, unblock one
-
-
-
-
Atomic -> indivisible
It is easier to interrupt process in critical session, as long as NO EFFECT, you can INTERRUPT process in critical session
-
-
O.S.
Kernel
-
Process
-
-
Multi-Programming
-
Yield() to other proc
Context Switching
-
- Load the context of other process
- Make system call / interrupt
-
-
-
-
-
-
-
-
-
-
Func: Enhance performance, reliability, securtiy
Events
Category
Inerrupt
Caused by external events: I/O finished, timer expire
-
-
Exception
-
-
Example
fault
Handling
fixed the exception condition, return to faulting context
-
-
-
-
Scheduling
-
Catagory
Preemption
-
Different Arrival Time
-
-
-
-
Fair Share
-
util over long time, will be close to requested
-
-
-
Real Time Scheduling
Periodic
C: CPU, T = period, U = C/T
-
-