[nanomsg] Re: nanomsg will implement lock-free queue?

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: chenbk <chenbk@xxxxxxxxxxx>
  • Date: Sat, 30 Mar 2013 06:05:13 +0100

On 30/03/13 02:54, chenbk wrote:

yes, I need this feature, so that can epoll wait on io thread, read
network data, then write to lock-free queue and eventfd worker thread.
so I think one-write-one-read-lock-free queue is very useful.
thank you very much.

Once again: When interacting with network there is no queue in nanomsg itself. The data are stored in TCP tx/rx buffers. Check the source code of your operating system for the details of the queueing algorithm.

Martin

Other related posts: