Question OS-SYNC-0030
EasyA process calls wait() (P) on a semaphore whose value is 0. What happens?
- A.
Nothing happens
- B.
The process is terminated
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Process Synchronization question
A process calls wait() (P) on a semaphore whose value is 0. What happens?
Nothing happens
The process is terminated
Sign up free to see the answer and a step-by-step explanation.
The process blocks until another process signals the semaphore
The semaphore becomes −1 and the process continues