Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. [SOLVED] Re: Which is better Vector or ArrayList ?

    @Alaa That doesn't affect Vector's thread safety. Vector is internally synchronized, so single operations are Thread-safe. However, the issue is there are no transactional operations like I described...
  2. [SOLVED] Re: Which is better Vector or ArrayList ?

    @datathinker read my reply on why not use Vector. It covers why internal synchronization in Vector is a very bad thing. Just because you're using a Vector doesn't mean your program is "thread safe"....
  3. [SOLVED] Re: Which is better Vector or ArrayList ?

    It has to deal with how modern computer architectures work, and what optimizations a compiler is allowed to make.

    Thread safety only matters if a certain resource can be concurrently accessed from...
  4. [SOLVED] Re: Which is better Vector or ArrayList ?

    As sci4me, Vector is internally "thread-safe" while ArrayList isn't. Personally I wouldn't ever use Vector because there is both too much and too little thread safety with Vector. You'll end up with...
Results 1 to 4 of 4