[Tutor] Multi-threading IO and the GIL

Tim Kelsey tk at eutechnyx.com
Tue Oct 28 12:27:17 CET 2008


eutechnyx 
Hello All, 

Im not sure if this is the correct list to post this sort of thing but I have a question about python threading and the GIL. I have a multi-threaded application that is hitting a MySQL database for some info from within the various threads. When increase the size of my thread pool I see little or no improvement in the application performance but the CPU usage is not maxed. This suggests to me that the app is IO bound on the database, surly more threads should help in this case. 



Is it possible that the GIL is not being release by a thread during the time its blocking on the DB connection? Im using MySQLdb module and the application is purely written in python.



Thanks for any information,



Tim Kelsey



This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. 

This email has been scanned for all known viruses by the Email Protection Agency.


www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081028/ea533cc5/attachment.htm>


More information about the Tutor mailing list