473,657 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get proper CPU uasge using GetProcessTimes API in multiprocessor system?

4 New Member
Hi,

I am using GetProcessTimes () API to calculate CPU usage of a process. In single processor system i get correct result , but in multiprocessor system i will get some abrupt and negative values. What should i do to get correct CPU usage using this API on multiprocessor system.

Thanks,
Viju
Oct 25 '07 #1
0 1896

Sign in to post your reply or Sign up for a free account.

Similar topics

0
285
by: samtan | last post by:
have to develop 4 windows .NET Services which perform similar (but not identical) tasks. These are to be run on a 2 processor Win2k Server. How do I perform processor load balancing? that is make sure that no more than 2 services execute on a single processor? Would it be any easier if I were to deploy these on a 4 Processor system. (number of processors = number of services). These Services read files in a direcrory and loop thru files...
2
3678
by: Kevin | last post by:
I am currently importing data into Access 2002 from 3 Sybase ASA 7.0 databases over a network. At this time I am using a ODBC System DSN connection using the proper ASA 7 driver. I would like to be able to make a DSN-Less connection so that my software is not dependent on having ODBC set-up with proper drivers and information. I have done hours of searching/testing but have been unsuccessful at making a DSN-Less connection. Could...
6
5964
by: Pujo Aji | last post by:
Hello, I'm looking some tutorial or book about programming C# multitreading in multiprocessor. Is anyone has experiance? Sincerely Yours, Pujo Aji
1
2064
by: Ohaya | last post by:
Hi, We are running a website on a Windows 2000 Advanced Server machine with 4 CPUs and Hyperthreading enabled (i.e., 8 virtual processors). The web server is IIS5. Our application uses ASP.net, and we originally were testing the application on a test system with a single CPU and no hyperthreading. When we moved the application to the production machine (the one with 4
3
1389
by: bonse | last post by:
According to reference http://support.microsoft.com/default.aspx?scid=kb;en-us;815156 , I added <processModel enable="true" webGarden="true" cpuMask="8" /> on web.config, restart iis service, the w3wp.exe process always use all cpu. The iis server is windows 2003 iis6, how can i restrict ASP.NET to specific processors in a multiprocessor system?
4
1345
by: Bob Altman | last post by:
Hi, Is there a way to detect when my program is running on a multiprocessor host computer?
0
1105
by: jacky shi | last post by:
Hi,all: I find a problem in my program related with multiprocessor.The OS is windows, and when it run on a singleprocessor machine, it's OK. But If the machine is multiprocessor, there will be some problems after some time. It seems that some address has been changed to zero,but I have done such thing just after getting a global mutex. Could anyone help me?
2
1278
by: RSH | last post by:
I am trying really hard to grasp the concept of Interfaces and their real world usage. I constructed a simple project of a webpage that contains two controls. I am enabling communication back and forth between the page as well as controls. I used two interfaces to remove the hardcoded references. Is what I'm doing correct? Any suggestions? Thanks!
1
2603
by: shrini | last post by:
Hi, Im using a map implementation that has structures as both the key and it value. Ive used as below: typedef struct RadioMeasurmentType { enum measurementId; uint32 radioCardId; uint32 radioPathId;
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.