Computer Science · Operating Systems
In the context of process synchronization using semaphores, arrange the following operational steps in the correct chronological sequence as they are executed by a process attempting to acquire a resource using the wait(S) operation: A. Decrementing the semaphore integer variable value (S = S - 1). B. Executing a busy-waiting loop while the semaphore value is non-positive. C. Checking the condition to determine if the semaphore value is less than or equal to zero (S ≤ 0). D. Transitioning into the critical section to access the shared resource. Choose the correct answer from the options given below:
- 1C, B, A, D✓
- 2B, C, A, D
- 3C, A, B, D
- 4A, B, C, D
Correct answer
C, B, A, D
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Operating Systems?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Operating Systems