Why does the consumer not work when using the thread pool to consume events?

48 views
Skip to first unread message

AllenHuang

unread,
Dec 10, 2022, 4:52:57 AM12/10/22
to Disruptor
I have a large number of consumers, if creating a separate thread for each consumer is not a good idea. So I want to use thread pool to consume all events. But a strange implementation happened, the consumer only consumed a small amount of data and was blocked all the time. No new consumers consume any events.
Here is an example of my code:

WX20221210-165054@2x.png
This is what the console prints:
WX20221210-165154@2x.png
What did i do wrong?
Reply all
Reply to author
Forward
0 new messages