Solved

What Happens When a Thread Calls P( S ) When

Question 22

Multiple Choice

What happens when a thread calls P( S ) when it wants to enter its critical section, where S is a binary semaphore set to 1?


A) The thread is allowed to enter its critical section and S is decremented.
B) The thread is blocked and added to a queue of waiting threads.
C) The semaphore is set to 2.
D) none of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents