Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61112 > unrolled thread

Re: Embedding multiple interpreters

Started byMichael Torrie <torriem@gmail.com>
First post2013-12-05 22:16 -0700
Last post2013-12-05 22:16 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Embedding multiple interpreters Michael Torrie <torriem@gmail.com> - 2013-12-05 22:16 -0700

#61112 — Re: Embedding multiple interpreters

FromMichael Torrie <torriem@gmail.com>
Date2013-12-05 22:16 -0700
SubjectRe: Embedding multiple interpreters
Message-ID<mailman.3622.1386307033.18130.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web