Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Finding the run time of a Fork process

by Anonymous Monk
on Jan 07, 2016 at 19:19 UTC ( #1152237=note: print w/replies, xml ) Need Help??


in reply to Finding the run time of a Fork process

Why do you keep telling 'it seems'. Tell us what actually happened. Surely you realize no one is going to run that stuff.

As for better way, see times, POSIX::times, maybe even getrusage.

  • Comment on Re: Finding the run time of a Fork process

Replies are listed 'Best First'.
Re^2: Finding the run time of a Fork process
by edimusrex (Monk) on Jan 07, 2016 at 19:45 UTC

    What I mean is that the first one that runs print out an expected 4 seconds or so but the next one appears to be adding an additional 4 seconds to the it meaning that if I run 5 processes they (for example) go 4, 8, 12, 16, 20 etc instead of an expected 4 seconds per thread (on average). As I am typing this I just realized that it may be correct as my webservice may only be allowing 1 process to interact with it at a time in which case my output is correct. I'll investigate that aspect of it more.

    Thanks again

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1152237]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-10-25 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?