Queue Thread Safe question

  • Thread starter Thread starter Shane Story
  • Start date Start date
S

Shane Story

The Collections.Queue class has a Synchronized property.

My colleague was saying that this means that we can use the queue in a
multi-threaded app and not worry about normal threading issues.

Is this true, or is it a faulty assumption and would he still need to use
Reader/Writer locks?

Thanks,

Shane
 
thanks for the link...

So from what I read, it seems that if the queue returns another queue
through the synchronized method and you only use it, there are no problems.

Shane
 
Back
Top