Queue Thread Safe question

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
 
S

Shane Story

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
 

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

Top