Solved

Resource Usage and System Calls

Posted on 2004-08-20
4
152 Views
Last Modified: 2010-04-15
Hi All,

what are the system calls to get System Resource usage in a c/c++ program...like:
1. execution time
2. CPU Usage
3. Memory Usage
etc...

...Menaka
0
Comment
Question by:menakaindrani
4 Comments
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 50 total points
ID: 11854903
Check out getrusage()
0
 
LVL 7

Expert Comment

by:aib_42
ID: 11857261
This is system dependant. Please tell us about your operating system and programming environment.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question