Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Finding the run time of a Fork process

by Anonymous Monk
on Jan 07, 2016 at 19:19 UTC ( [id://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.

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?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found