I have not been able to find a good answer about the
System.Collecti ons.Queue.Synch ronized() method and how it actually works or
is to be used.
If I create my Queue in the following manner:
System.Collecti ons.Queue myQueue = System.Collecti ons.Queue.Synch ronized(new
System.Collecti ons.Queue());
is it a Thread-Safe queue no matter where it is used? Or do I have to call
Synchronized() and use the Queue that it returns everytime I want to use the
Queue.
Thanks,
Chuck
System.Collecti ons.Queue.Synch ronized() method and how it actually works or
is to be used.
If I create my Queue in the following manner:
System.Collecti ons.Queue myQueue = System.Collecti ons.Queue.Synch ronized(new
System.Collecti ons.Queue());
is it a Thread-Safe queue no matter where it is used? Or do I have to call
Synchronized() and use the Queue that it returns everytime I want to use the
Queue.
Thanks,
Chuck
Comment