[zeromq-dev] Scheduling algorithms

Martin Sustrik sustrik at 250bpm.com
Mon Dec 21 11:44:11 CET 2009


Martin Sustrik wrote:
> Hi Dragan,
> 
> At the moment fair queueing is used for incoming messages and 
> round-robin for outgoing messages. Both algorithms were optimised to 
> O(1) by Dhammika Pathirana.

Here's the scheduling code btw:

http://github.com/sustrik/zeromq2/blob/master/src/lb.cpp
http://github.com/sustrik/zeromq2/blob/master/src/fq.cpp

Martin



More information about the zeromq-dev mailing list