I\'m using LinkedBlockingQueue between two different threads. One thread adds data via add, while the other thread receives data via take
LinkedBlockingQueue
add
take
Simply Yes, its definitely thread safe otherwise it wouldn't have qualified as a candidate for storing element for ThreadPoolExecutor.
Simply add and retrieve element without worrying about concurrency for BlockingQueue.