Unix and Linux Discussions Tagged with for each |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
11,309 |
Programming |
|
|
|
4 |
3,861 |
Shell Programming and Scripting |
|
|
|
3 |
1,646 |
Shell Programming and Scripting |
|
|
|
41 |
13,526 |
Shell Programming and Scripting |
|
|
|
3 |
12,349 |
Programming |
|
|
|
0 |
946 |
UNIX and Linux RSS News |
|
|
|
3 |
18,913 |
AIX |
|
|
|
7 |
5,186 |
IP Networking |
|
|
|
9 |
6,771 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,942 |
Shell Programming and Scripting |
|
|
|
1 |
1,921 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
35,018 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,510 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,606 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
7,012 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
18,095 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,263 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
15,327 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
6,498 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
5,167 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,637 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
2,869 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,321 |
IP Networking |
|
|
|
1 |
3,008 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
15,348 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
60,557 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,599 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,457 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,600 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,541 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,410 |
IP Networking |
|
|
|
9 |
11,061 |
Cybersecurity |
|
|
|
3 |
29,020 |
Where do I download LINUX & UNIX? |
|
|
|
3 |
2,601 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,289 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
22,382 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,547 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,580 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,597 |
UNIX for Dummies Questions & Answers |
getrusage(2) System Calls Manual getrusage(2)
NAME
getrusage - get information about resource utilization
SYNOPSIS
DESCRIPTION
The function provides measures of the resources used by the current process or its terminated and waited-for child processes. If the
value of the who argument is information is returned about resources used by the current process. If the value of the who argument is
information is returned about resources used by the terminated and waited-for children of the current process. If the child is never waited
for (for instance, if the parent has set or sets to the resource information for the child process is discarded and not included in the
resource information provided by The r_usage argument is a pointer to an object of type in which the returned information is stored.
If the current process is multi-threaded, returns the information about the resources used by all the active and the reaped threads/light-
weight processes in the current process if the value of the who argument is If the value of the who argument is in a multi-threaded
process, information returned is the same as it would be for a single-threaded process.
RETURN VALUE
Upon successful completion, returns Otherwise, is returned, and is set to indicate the error.
ERRORS
The function will fail if:
[EINVAL] The value of the who argument is not valid.
SEE ALSO
exit(2), sigaction(2), time(1), times(2), wait(1), <sys/resource.h>.
getrusage(2)