Question: When a thread invoke wait ( &lock, &condition ) , what actions does the calling thread do ? The calling thread gives up lock The

When a thread invoke wait(&lock, &condition), what actions does the calling thread do?
The calling thread gives up lock
The calling thread gives up its CPU cycle, enters into waiting mode to be signaled for the waiting state.
Once signaled, the calling thread will reacquire the lock and proceed to the execution.
The calling thread will notify the waiting thread

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!