I've just discovered that Python is a language which does not let multiple threads execute at the same time, because the run parallel runtime support is based on a central lock (the "Global Interpreter Lock"). So, I guess the only way to utilise multiple processors/cores is to run separate processes? Or, do all Python programs running on a system share the same runtime?
Regards, Warren From: [email protected] [mailto:[email protected]] On Behalf Of Warren Vick Sent: 06 September 2009 08:53 To: [email protected] Subject: Re: [Mapnik-users] Multi Threading Did anyone manage to answer Richard's question? I'd also like to port generate_tiles.py to use multi-threading. Since tile generate is naturally parallel in nature, it seems ideally suited, but the key question is... is Mapnik thread safe? i.e. Can I have one map object in Python and safely render from it in multiple threads? Regards, Warren Vick From: [email protected] [mailto:[email protected]] On Behalf Of Richard Ive Sent: 25 August 2009 10:39 To: [email protected] Subject: [Mapnik-users] Multi Threading I've noticed that the generate_tiles.py script does not support multi threading. Is there a way you can change the software to multi thread, so it can use 100% CPU instead of just the 25% mine is using? -- Regards, Richard Ive.
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

