Category Archives: 0mq code reading

My notes on 0mq code reading.

0mq code reading (2): Notification only when necessary

 The lockless queue used by 0mq has a notification mechanism which IMO is pretty nice.  The writer notifies the reader only if  the reader is sleeping or is going to sleep. The technique is quite simple but mixied with the … Continue reading

Posted in 0mq code reading | Leave a comment

0mq code reading (1): mailbox

mailbox.cpp/h: mailbox is the inter-thread communication mechanism . In 0mq, whenever one thread wants to modify the status of the other one, it sends a message to inform the other thread to do it. You don’t need any synchronization among … Continue reading

Posted in 0mq code reading | Leave a comment