socket function that loops AND returns something
Bryan Olson
fakeaddress at nowhere.org
Thu Sep 16 12:27:14 EDT 2004
Cameron Laird wrote:
[...]
>>Different servers have different needs, but when in doubt use
>>threads. Threading on the popular operating systems has
>>improved vastly in the last several years. Running a thousand
>>simultaneous threads is perfectly reasonable. Programmers using
>>threads have to be aware of things like race conditions, but
>>when threads are handling separate connections, most of their
>>operations are independent of other threads.
>
> Are you advising Python programmers to use only thread-based
> approaches, and to judge Asyncore and Twisted on that basis?
No.
> Do you intend that readers believe that it "is perfectly
> reasonable" to design in terms of a single Python process
> which manages up to "a thousand simultaneous *Python*
> threads"?
Yes.
--
--Bryan
More information about the Python-list
mailing list