threading

Sturla Molden sturla.molden at gmail.com
Wed Apr 9 11:29:26 EDT 2014


"Frank Millman" <frank at chagford.com> wrote:

> If I have understood correctly, then is there any benefit at all in my going 
> async? I might as well just stick with threads for the request handling as 
> well as the database handling.

1. There is a scalability issue with threads, particularly if you don't
have enough RAM or use a 32 bit system.

2. Earlier Linux kernels did not perform well if they had to schedule
10,000 threads. 

3. It is nice to be able to abort a read or write that hangs (for whatever
reason). Killing a thread with pthread_cancel or TerminateThread is not
recommended.


Sturla




More information about the Python-list mailing list