inter-threading communication with message port/message queue
I really don't know where to put this thread appropriately so I just post it here.
I want to do is to provide an extension for a standard threads
library so that threads from different processes can communicate with
each other directly e.g. one thread from process A can remotely delete
a thread from process B using some kind of communication method. In
order to do this I decided to use message passing which might have
several implementations such as pipes, fifo, message queue. I have
briefly gone through coordination mechanisms available on Linuxthreads
and Pth. I reckoned that Linuxthreads uses pipes as an interthreading
communication mechanism whilst Pth derives a new mechanism Message port
to accomplish that inter-threading communication.
Here the question comes: does Pth and Linuxthreads support message
queue mechanism? If yes then how do you compare the efficiency between
Message queue , Message port ? I mean what are the pros and cons of Message port?