[Python-ideas] Async API
Daniel Foerster
pydsigner at gmail.com
Sat Oct 27 18:02:45 CEST 2012
On 10/26/2012 11:54 PM, Nick Coghlan wrote:
> On Sat, Oct 27, 2012 at 1:06 PM, Daniel Foerster <pydsigner at gmail.com> wrote:
>> So, are threads still an option? I feel that many of these problems with
>> generators could be solved with threads.
> No, because available operating systems can handle a few orders of
> magnitude more concurrent IO operations per process than they can
> handle threads per process. The idea of asynchronous programming is to
> only use additional threads when you really need them (i.e. for
> blocking synchronous operations with no asynchronous equivalent), thus
> providing support for a far greater number of concurrent operations
> per process than if you rely entirely on threads for concurrency.
>
> Cheers,
> Nick.
>
I'm realizing that I perhaps don't grasp the entirety of Asynchronous
programming. However, The only results I have found are for .NET and C#.
Would you like to recommend some online sources I could read?
More information about the Python-ideas
mailing list