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

iOS: Performance of reloading UIImage(name:...) -

How to prevent logback from emitting repeated "Empty watch file list. Disabling" messages -

c# SetCompatibleTextRenderingDefault must be called before the first -