Newsgroups: comp.programming.threads, comp.protocols.tcp-ip
From: st...@nospam.Watt.COM (Steve Watt)
Date: Wed, 11 Dec 2002 23:07:46 GMT
Local: Wed, Dec 11 2002 6:07 pm
Subject: Re: Thread-per-socket vs select()
In article <3DF7BD1E.CDF00...@webmaster.com>,
David Schwartz <dav...@webmaster.com> wrote: >"David M. Lloyd" wrote: Note that he said to remove the fd from the set, which means that it [ ... ] >> This way you only need one thread selecting, but all threads can operate > Imagine you're handling 1,000 connections and you find work to do on won't be selected for again "for a while" (until signalled ready again). Additionally, if you process *all* of the notified fds in the loop That model works pretty well for medium large values of file You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||