4 ms·
You could maintain separate queues for each priority, and always process them from the top down.
by NeutronBoy 14y ago
You could maintain separate queues for each priority, and always process them from the top down.
- chj 14y agoOK, now I guess event queue can also be lock free. Use one lock free queue as the article described for incoming events from the producer, and another queue with the event sorted by the consumer.
- chj 14y agoThis sounds great for priority queues. But how about an event queue, where every event has a time tag?