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
> itself(event loop for co-routines and GIL scheduling for threading), so
> where does the extra overhead for threads come from ?

I'm afraid that your question is *far* too advanced for this mailing 
list, which is for beginners. I suggest that you ask your question on 
the main Python list:

    https://mail.python.org/mailman/listinfo/python-list

also available on Usenet at comp.lang.python. If you don't get a 
response there, then you may ask the core Python developers on the 
Python-Dev mailing list:

    https://mail.python.org/mailman/listinfo/python-dev



Regards,


Steve
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to