Operating Systems20815 marksSemaphore
Explain how semaphore solves the problem of critical section.
Explain how semaphore solves the problem of critical section. [5]
A critical section is the part of a program where shared memory or shared resources are accessed. When multiple processes/threads enter their critical sections simultaneously, a race condition occurs, producing incorrect or unpredictable results depending on execution order. A correct solution to...