Click here to Skip to main content
15,909,898 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
QuestionMonitoring CPU Pin
red_moon10-Aug-09 6:59
red_moon10-Aug-09 6:59 
I have a problem when trying to monitor CPU. My machine has Core2Duo CPU. But, when I'm trying to request number of processors using WMI, the return value is 1. Here's my code(VB .Net) :

Dim noCPU As Int64<br />
Dim mgtScr As ManagementObjectSearcher = New ManagementObjectSearcher("root\CIMV2", "Select * from Win32_ComputerSystem")<br />
For Each mgtObj As ManagementObject In mgtScr.Get<br />
    noCPU = Convert.ToInt64(mgtObj("NumberOfProcessors"))<br />
Next<br />
mgtScr.Dispose()


Is my code right?How it's must be?After that, how can I get the CPU usage and CPU temperature from each processor / core?

I'm sorry, I can write in English very well, cause I'm an Indonesian Big Grin | :-D

25160506848319

AnswerRe: Monitoring CPU Pin
Luc Pattyn10-Aug-09 7:38
sitebuilderLuc Pattyn10-Aug-09 7:38 
QuestionWrite in pendrives's boot sector Pin
J.K.Sharma6-Aug-09 22:54
J.K.Sharma6-Aug-09 22:54 
QuestionSound device disable !! Pin
Hum Dum6-Aug-09 0:48
Hum Dum6-Aug-09 0:48 
QuestionControlling Ports, Device I/O Range and Device Memory Range Pin
eddy5115-Aug-09 11:49
eddy5115-Aug-09 11:49 
Questionhow can driver be loaded in dynamic? Pin
buffering834-Aug-09 21:22
buffering834-Aug-09 21:22 
AnswerRe: how can driver be loaded in dynamic? Pin
Randor 5-Aug-09 5:23
professional Randor 5-Aug-09 5:23 
Questioni have question about USB Filter Driver~ [modified] Pin
buffering834-Aug-09 8:33
buffering834-Aug-09 8:33 
AnswerRe: i have question about USB Filter Driver~ Pin
Randor 4-Aug-09 10:44
professional Randor 4-Aug-09 10:44 
GeneralRe: i have question about USB Filter Driver~ Pin
buffering834-Aug-09 20:25
buffering834-Aug-09 20:25 
Questionquestion about mouse filter INF Pin
buffering833-Aug-09 6:23
buffering833-Aug-09 6:23 
AnswerRe: question about mouse filter INF Pin
Randor 3-Aug-09 7:09
professional Randor 3-Aug-09 7:09 
GeneralRe: can i ask one more? Pin
buffering833-Aug-09 8:56
buffering833-Aug-09 8:56 
GeneralRe: can i ask one more? Pin
Randor 3-Aug-09 12:46
professional Randor 3-Aug-09 12:46 
Generalreally thank you^^! Pin
buffering833-Aug-09 18:19
buffering833-Aug-09 18:19 
Questionhow can i make USB filter driver inf or regedit file? Pin
buffering833-Aug-09 2:14
buffering833-Aug-09 2:14 
AnswerRe: how can i make USB filter driver inf or regedit file? Pin
Randor 3-Aug-09 6:38
professional Randor 3-Aug-09 6:38 
GeneralRe: thank you but i want to make this by using Device Driver~ Pin
buffering833-Aug-09 8:43
buffering833-Aug-09 8:43 
GeneralRe: thank you but i want to make this by using Device Driver~ Pin
Randor 3-Aug-09 9:56
professional Randor 3-Aug-09 9:56 
Questionwhere is kbilfer.c ? Pin
buffering8331-Jul-09 9:49
buffering8331-Jul-09 9:49 
AnswerRe: where is kbilfer.c ? Pin
Randor 1-Aug-09 6:43
professional Randor 1-Aug-09 6:43 
GeneralTnank you! Pin
buffering832-Aug-09 21:43
buffering832-Aug-09 21:43 
Questionwhat's mean "forb"? Pin
buffering8331-Jul-09 7:59
buffering8331-Jul-09 7:59 
AnswerRe: what's mean "forb"? Pin
Dan Neely31-Jul-09 8:36
Dan Neely31-Jul-09 8:36 
GeneralThank you!! Pin
buffering8331-Jul-09 9:48
buffering8331-Jul-09 9:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.