Please enable JavaScript.
Coggle requires JavaScript to display documents.
Synchronization (Semaphores (Implementation (waiting queue (value,…
Synchronization
Semaphores
-
1.control acess to a shared access,
-
-
wait() -> to test,signal() -> to increase
-
-
-
-
-
-
-
-
Critical-Section
each process must ask permission to enter critical section then executes in critical section then exits and go to remainder section
Solutions
Synchronization
-
process obtains key,put it in lock n makes it unavailable to other process
Problems
-
2.Progress
if no process in CS and some process that wish to enter CS,then the process that are not executing in RS paritcipate in deciding which process will enter
3.Bounded waiting
if a process already enter cs,and request again when there is is still other process waiting,then there is limit
-
-
-
-