Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Two processes of a Perl EXE

by pankaj_it09 (Scribe)
on Nov 24, 2009 at 10:13 UTC ( #809034=perlquestion: print w/ replies, xml ) Need Help??
pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:

In my Windows XP system the EXE created using the "pp" command occurs twice in the task manager when I run it.

One process is running and the other is just present in the memory.

Why two processes ?

Comment on Two processes of a Perl EXE
Re: Two processes of a Perl EXE
by Anonymous Monk on Nov 24, 2009 at 10:38 UTC
    That is just the way PAR works
      Can you give more details ?
        Can you find them?

        Here, I found the following that seems to be included in the module docs:

        When a non-dependant PAR package runs, there is a two stage binary frontend: first the executable demo.exe that I ran, then a second demo.exe that is extracted to the temp dir and run as a child of the first. If you look at the process list while demo.exe runs, you'll see two processes with the same name.

        I'm guessing the first process is the one that extracts the perl binary and your sources from the exe, then calls the extracted binary to run the extracted sources as a separate process (to handle crashes better maybe?), and then cleans up the extracted files when perl exits.

        At least I seem to recall someone once mentioning some article where someone else said that's how it might more or less work. (In other words, I'm guessing)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://809034]
Approved by bellaire
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-08-30 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls