• Post Reply Bookmark Topic Watch Topic
  • New Topic

Blocking Queue implementation

 
Samuel Ittera
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My question is has anyone thought of using queues to implement their project? java.util.BlockingQueue would be any easy implementation of the server side concurrency problem. Your thoughts and comments would be appreciated.
 
Roy Mallard
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I considered it for ordering the file writes, but RandomAccessFile is pretty much thread-safe except for the length() method (someone please correct me if I'm wrong!)
I have found ConcurrentHashMap to be very useful.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!