On Sun, 2009-09-06 at 09:28 +0100, Warren Vick wrote:
> 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?

Mapnik can render lots of tiles in parallel via the python bindings. The
GIL is released during the main rendering call so that multiple threads
can run in parallel. I use the feature in the python mod_tile
renderd.py.

The generate_tiles.py has not been updated because it was originally
intended as a simple example program, not a serious tool for rendering
millions of tiles. I'll take a look at adding in some multithreading
into generate_tiles.py.

        Jon


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to