Re: [Tutor] event loop vs threads

2016-09-26 Thread Steven D'Aprano
Hi Srinivas, On Sat, Sep 24, 2016 at 01:09:46PM +0530, srinivas devaki wrote: > how does Python switch execution and maintain context i.e function stack > etc,.. for co-routines and why is it less costly than switching threads > which almost do the same, and both are handled by Python Interpreter

[Tutor] event loop vs threads

2016-09-25 Thread srinivas devaki
how does Python switch execution and maintain context i.e function stack etc,.. for co-routines and why is it less costly than switching threads which almost do the same, and both are handled by Python Interpreter itself(event loop for co-routines and GIL scheduling for threading), so where does th