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 ...
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 ...
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?