Background:
Upon receiving a Monitor.Pulse, the waiting thread is moved to the ready
queue. When the thread that invoked Monitor.Pulse releases the lock, the
next thread in the ready queue (which is not necessarily the thread that was
pulsed) acquires the lock.
How can a ensure that the waiting thread gets priority in acquiring the lock
over others in the waiting queue?
I need the waiting thread to be the one next in line to acquire the lock
after any Pulse from any other thread.
Thanks
Perry