468,321 Members | 1,817 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 developers. It's quick & easy.

threading monitor

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
Jun 2 '06 #1
0 810

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Schmitz | last post: by
5 posts views Thread by ste | last post: by
1 post views Thread by Mike | last post: by
8 posts views Thread by Michael Kennedy | last post: by
12 posts views Thread by Perecli Manole | last post: by
reply views Thread by Perecli Manole | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.