Java multithreading: Jboss container threads generating MPSC case -


suggest me use concurrent data structure between concurrentlinkedqueue vs linkedblockingqueue vs linkedtransferqueue below scenario:

jboss container's thread generating objects needs store in static data structure(queue) , 1 consumer thread reading static data structure(queue), retrieving head object queue , doing needful.

i want non blocking put operation don't have control on producer threads generated container based on request landing on it.

my choise linkedblockingqueue have below quires:

is put operation in linkedblockingqueue threadsafe, if multi producer threads concurrently inserting elements in blockingqueue need synchronize put operation.

what level on concurrency in linkedblockingqueue?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -