[Stackless] Threads and Tasklets

Bob Ippolito bob at redivi.com
Thu Oct 27 18:41:14 CEST 2005

On Oct 27, 2005, at 9:32 AM, Andrew Francis wrote:

> Hello Bob:
> --- Bob Ippolito <bob at redivi.com> wrote:
>> If you're using non-blocking sockets you don't need
>> any real threads.  Twisted is single threaded, and
>> doesn't require any  additional threads for I/O.. it
>> doesn't even use stackless.  asyncore
>> is another example of this.
> I know about the select() function. I feel select()
> results in complicated code. I have heard of Twisted.
> Let me see how this works with what I doing.

To write a high performance socket application, you NEED to use  
select or equivalent.  It doesn't matter whether you're using  
stackless or not, os-thread-per-connection does not scale.


Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list