blockingqueue « Thread Safe « Java Thread Q&A

Home
Java Thread Q&A
1.concurrency
2.Development
3.Exception
4.Notify
5.Operation
6.Socket
7.State
8.synchronize
9.Thread Safe
10.ThreadPool
Java Thread Q&A » Thread Safe » blockingqueue 

1. ThreadPoolExecutor - ArrayBlockingQueue ... to wait before it removes an element form the Queue    stackoverflow.com

I am trying to Tune a thread which does the following: A thread pool with just 1 thread [CorePoolSize =0, maxPoolSize = 1] The Queue used is a ArrayBlockingQueue: http://download.oracle.com/javase/6/docs/api/java/util/concurrent/BlockingQueue.html#poll%28long,%20java.util.concurrent.TimeUnit%29 Quesize = 20 ...

2. How to use java notify correctly in blocking queue implementation    stackoverflow.com

I am trying to understand Java multi-threading constructs, and I am trying to write a simple implementation of blocking queue. Here is the code I have written:

  class BlockingBoundedQueue<E>
  ...

3. Thread-safety of BlockingQueue's drainTo() method    stackoverflow.com

Documentation of BlockingQueue says bulk operations are not thread-safe, though it doesn't explicitly mention the method drainTo().

BlockingQueue implementations are thread-safe. All queuing methods achieve their ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.