Re: Line-oriented blocking input from sockets?

2003-07-15 Thread Ralf S. Engelschall
On Mon, Jul 14, 2003, Damon Hastings wrote: Can you give me a ballpark idea of the cost per context switch for 150 threads, almost all of which are waiting on I/O at any given time? The costs depend on the particular method Pth uses for the context implementation, of course. But all available

RE: Line-oriented blocking input from sockets?

2003-07-15 Thread David Schwartz
The costs depend on the particular method Pth uses for the context implementation, of course. But all available methods Pth uses are very cheap, because they are user-space only methods. Keep also in mind that because Pth is a non-preemtive threading implementation, the context