Inter-Thread Messaging with Send/Receive
while (systemActive) {
object = GetNextClientRequest();
find object in cache or Web server
while(more data in object) {
currentThread->receive(data);
get request for object from thread;
while(more data in object) {
This example illustrates use of blocking send/receive primitives to pass a stream of messages or commands to a specific thread, connection, or “port”.