Re: Thread Safe Object/Class
Tuesday, February 11, 2003 06:50 AM
No, an object is thread unsafe when it is a shared resource amongst competing threads and no synchonisation and/or semaphores are implemented. Vector is thread safe, because when some thread is reading the vector, another thread cannot come and modify the same vector. As I said before, it helps for ANY shared resource, be it file I/O, Database connections, etc.