Embedding multiple interpreters

Michael Torrie torriem at gmail.com
Fri Dec 6 06:16:21 CET 2013


On 12/05/2013 07:34 PM, Garthy wrote:
> - My fallback if I can't do this is to implement each instance in a 
> dedicated *process* rather than per-thread. However, there is a 
> significant cost to doing this that I would rather not incur.

What cost is this? Are you speaking of cost in terms of what you the
programmer would have to do, cost in terms of setting things up and
communicating with the process, or the cost of creating a process vs a
thread?  If it's the last, on most modern OS's (particularly Linux),
it's really not that expensive.  On Linux the cost of threads and
processes are nearly the same.



More information about the Python-list mailing list