From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Channel casting From: "Russ Cox" In-Reply-To: <3ECBC538.5090608@ameritech.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 21 May 2003 13:33:22 -0400 Topicbox-Message-UUID: b671901e-eacb-11e9-9e20-41e7f4b1d025 > What I was mainly worried about was timing. > If one thread sends a request, but, another > thread preempts that first thread's call to > recv, wont the second thread receive the > server thread's response? The way I wrote the server it's only ever handling one request at a time, which means that only the thread who sent that request has finished sending. You're right that if the server handles multiple requests at a time then you need a reply channel. Russ