By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

Queue Thread Safe question

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Check out
http://msdn.microsoft.com/library/de...readsafety.asp
"Shane Story" <sh**************@dv-corp.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #2

P: n/a
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

"OpticTygre" <op********@adelphia.net> wrote in message
news:QM********************@adelphia.com...
Check out
http://msdn.microsoft.com/library/de...readsafety.asp
"Shane Story" <sh**************@dv-corp.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
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


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.