vector « Thread Safe « Java Thread Q&A

Home
Java Thread Q&A
1.concurrency
2.Development
3.Exception
4.Notify
5.Operation
6.Socket
7.State
8.synchronize
9.Thread Safe
10.ThreadPool
Java Thread Q&A » Thread Safe » vector 

1. java Vector and thread safety    stackoverflow.com

I'm wondering if this code will do any trouble: I have a vector that is shared among many threads. Every time a thread has to add/remove stuff from the vector I do ...

2. CopyOnWriteArray or Vector    stackoverflow.com

All, The edge Vector class has over ArrayList is that it is synchronized and hence ensures thread safety. However, between CopyOnWriteArray and Vector, what should be the preferred considering thread safety and ...

3. What can I use instead of a Vector in Java?    stackoverflow.com

It looks like when programming in Java we are not suppose to use Vectors anymore when threads are involved. What class should I use instead of a Vector when using threads?

import java.util.Vector;
Vector<String> ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.