1.

Which method is called when a thread is blocked from running temporarily?(a) Pulse()(b) PulseAll()(c) Wait()(d) Both Pulse() & Wait()

Answer» Correct option is (c) Wait()

Explanation: When a thread is temporarily blocked from running, it calls Wait( ). This causes the thread to go to sleep and the lock for that object to be released, allowing another thread to acquire the lock.


Discussion

No Comment Found

Related InterviewSolutions