Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'programmer': 0.03; 'fallback': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'thread?': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'creating': 0.23; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'nearly': 0.26; 'header:In-Reply-To:1': 0.27; 'linux': 0.33; "can't": 0.35; 'there': 0.35; 'really': 0.36; 'doing': 0.36; 'implement': 0.38; 'message-id:@gmail.com': 0.38; 'process,': 0.38; 'same.': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Thu, 05 Dec 2013 22:16:21 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Embedding multiple interpreters References: <52A137B3.7010408@entropicsoftware.com> In-Reply-To: <52A137B3.7010408@entropicsoftware.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386307033 news.xs4all.nl 2927 [2001:888:2000:d::a6]:55029 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61112 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.