Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 ?

Replies are listed 'Best First'.
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 ?

        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)

        Can you find them?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://809034]
Approved by bellaire
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2018-05-22 14:43 GMT
Find Nodes?
    Voting Booth?