Hi Scott,
When you issue spawn() a new process is created.
 There is a C USS service named w_getpsent() you can use to get a lot of 
information about a process including the user CPU time of the process.
 Gil.

 On 7/19/05, Jackson, Scott <[EMAIL PROTECTED]> wrote: 
> 
> All,
> 
> (Cross posted to MVS-OE listserv)
> 
> I'm looking for the most accurate method of tracking CPU usage in a
> specific task using C/C++ under z/OS UNIX System Services.
> 
> Example:
> 
> TASK A spawns TASK B. I want to measure the CPU usage for TASK B and all
> it's children. I'm currently using the times() function but according to
> the manual the results may not reflect usage correctly for z/OS USS.
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to