using python interpreters per thread in C++ program

sturlamolden sturlamolden at yahoo.no
Tue Sep 8 03:16:30 EDT 2009


On 8 Sep, 08:46, I V <ivle... at gmail.com> wrote:

> Do you have to use threads? If you use a process per connection, rather
> than a thread, each process will have its own GIL.

If ganesh is using Linux or Unix (which pthreads indicate), fork() is
just as efficient as threads.

On Windows one would need to keep a farm of prespawned Python
processes, connected with pipes to the main server.







More information about the Python-list mailing list