Which Java blocking queue is most efficient for single-producer single-consumer scenarios

后端 未结 7 2108
野的像风
野的像风 2020-12-23 16:32

I\'m working on a standard Java system with critical timing requirements for my producers (1/100s of ms matters).

I have a producer placing stuff in a blocking queu

相关标签:
7条回答
  • 2020-12-23 17:25

    You can look into using LinkedTransferQueue, which implements "Dual Queue with Slack" and is good at matching Producers and Consumers. See following for more details Java 7 TransferQueue, Dual Synchronous Queues (.pdf) and LinkedTransferQueue source

    0 讨论(0)
提交回复
热议问题