Python Interpreter with multiple Python Programs
Ian Parker
parker at gol.com
Mon Mar 10 22:05:59 EST 2003
In article <slrnb6op54.i0.gerhard.haering at haering.opus-gmbh.net>,
Gerhard Häring <gerhard.haering at opus-gmbh.net> writes
>Anthony Irwin <anthonyi at toolboxsoftware.com.au> wrote:
>> Hi,
>>
>> I have recently started learning Python and have a question about the
>> interpreter, if I run multiple Python programs will the Python interpreter
>> load for each program I run.
>>
>> e.g. If I run 4 Python programs will 4 Python interpreters load or 1
>> interpreter for all 4 programs.
>
>4 interpreters will be loaded.
>
>> I know there is a virtual Java environment (probably using incorrect term
>> here) that you can get for Java that will only load the Java interpreter
>> once instead of loading the interpreter for every Java program loaded is
>> this an issue for Python?
>
>Python starts up much faster and has less memory footprint, so this should be
>less of a problem than for Java.
>
>-- Gerhard
On the other hand, depending on the operating system, some parts of the
interpreter, e.g. code sections, may only be loaded once. and shared
among the loaded interpreter programs. Therefore less memory may used
than expected.
Regards
--
Ian Parker
More information about the Python-list
mailing list