• Post Reply Bookmark Topic Watch Topic
  • New Topic

a list of prime classes most used in real project ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java 1.5 add lots of classes in concurrency, but I am sure some of classes are NOT that commonly used in the real, regular programming. Can you provide a list of prime classes most used in real project ?

for me, countdownlatch will be one of them, in parallelism logic, that class will be very helpful to test if different conditions be met ...

Thanks.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every project will have its own needs. For me, the ones I use most often would be Lock (ReentrantLock), Condition, and Semaphore. The ExecutorService (implementor as needed for the current situation) and Future are used a ton. I can't remember what I did before BlockingQueue and its implementors (specifically LinkedBlockingQueue most often). Other ones I use regularly would be ThreadFactory and the contents of java.util.concurrent.atomic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!