我正在使用以下事件处理程序运行中断实例:
int NUM_EVENT_PROCESSORS = 5;
executor = Executors.newFixedThreadPool(NUM_EVENT_PROCESSORS);
EventFactory factory = new EventFactory();
System.out.println("Starting Disruptor");
disruptor = new Disruptor<>(factory, RING_SIZE, executor, ProducerType.SINGLE, new BlockingWaitStrategy());
disruptor.handleEventsWith(new Logger(), new Replicator(), new Logic());
disruptor.start();
我发现了一个 Replicator() 线程挂起并阻塞 Logic() 线程的实例。
如果环形缓冲区中有 1 个事件,中断线程是否按顺序工作?