Synclock blocking order

  • Thread starter Thread starter fred
  • Start date Start date
F

fred

If I have numerous threads being blocked by a Synclock on the same object
then I believe normally the threads will be released on a first in first out
bases.
Can this be changed by having different priorities on the threads. So if I
made one thread with a high priority while the other threads are normal then
will the high priority thread jump the queue?

Thanks for any information.
Fred
 
then I believe normally the threads will be released on a first in first out
bases.

No, they will be released in the order the OS decides.

Can this be changed by having different priorities on the threads. So if I
made one thread with a high priority while the other threads are normal then
will the high priority thread jump the queue?

Not necessarily.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SyncLock 4
SyncLock and Array.SyncRoot and ReDim 2
Question about Synclock and exceptions 3
Synclock 1
Thread Abort and SyncLock 4
synclock questions 12
synclock question 7
SyncLock documentation 9

Back
Top