Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OT (THHB attempt 3) Pin
CPallini28-Jul-08 1:47
mveCPallini28-Jul-08 1:47 
GeneralRe: OT (THHB attempt 3) Pin
Mark Salsbery28-Jul-08 7:34
Mark Salsbery28-Jul-08 7:34 
QuestionHow CPU uage is calulcated? Pin
vikramlinux28-Jul-08 0:25
vikramlinux28-Jul-08 0:25 
AnswerRe: How CPU uage is calulcated? Pin
_AnsHUMAN_ 28-Jul-08 0:34
_AnsHUMAN_ 28-Jul-08 0:34 
GeneralRe: How CPU uage is calulcated? Pin
vikramlinux28-Jul-08 0:35
vikramlinux28-Jul-08 0:35 
GeneralRe: How CPU uage is calulcated? Pin
toxcct28-Jul-08 0:37
toxcct28-Jul-08 0:37 
GeneralRe: How CPU uage is calulcated? Pin
vikramlinux28-Jul-08 0:41
vikramlinux28-Jul-08 0:41 
GeneralRe: How CPU uage is calulcated? PinPopular
Luc Pattyn28-Jul-08 2:15
sitebuilderLuc Pattyn28-Jul-08 2:15 
Hi,

this will show you how it can be done.

Assume you go to the shopping mall; don't forget to carry your watch.
Note the entry time ("mallStart")

Now for an arbitrary number of iterations:
- choose a shop i
- note entry time ("istart")
- wander around
- note exit time ("istop")

At the end, note the time you leave the mall ("mallStop")

Now the total time was mallStop-mallStart
and the time spent in shop i was istop-istart (or if you went to shop i more than once, it
was sum of each of the istop minus sum of each of the istart)

And the fraction of time alloted to shop i was (istop-istart)/(mallStop-mallStart)
If you add all the fractions, you will end up less than one, the remainder is the time
spent in the mall but outside the shops, let us call it the idle time.

Now imagine you are a CPU, and the shops are the processes that need to run. There you go.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


JokeRe: How CPU uage is calulcated? Pin
CPallini28-Jul-08 2:22
mveCPallini28-Jul-08 2:22 
GeneralRe: How CPU uage is calulcated? Pin
Rajesh R Subramanian28-Jul-08 2:30
professionalRajesh R Subramanian28-Jul-08 2:30 
GeneralRe: How CPU uage is calulcated? Pin
CPallini28-Jul-08 21:54
mveCPallini28-Jul-08 21:54 
JokeRe: How CPU uage is calulcated? Pin
Rajesh R Subramanian31-Jul-08 3:03
professionalRajesh R Subramanian31-Jul-08 3:03 
GeneralRe: How CPU uage is calulcated? Pin
vikramlinux28-Jul-08 2:48
vikramlinux28-Jul-08 2:48 
QuestionDeleting Items in CTreeCtrl Pin
Adeel Mirza27-Jul-08 23:27
Adeel Mirza27-Jul-08 23:27 
AnswerRe: Deleting Items in CTreeCtrl Pin
_AnsHUMAN_ 27-Jul-08 23:48
_AnsHUMAN_ 27-Jul-08 23:48 
AnswerRe: Deleting Items in CTreeCtrl Pin
kDevloper28-Jul-08 0:11
kDevloper28-Jul-08 0:11 
QuestionRe: Deleting Items in CTreeCtrl [modified] Pin
Adeel Mirza28-Jul-08 0:30
Adeel Mirza28-Jul-08 0:30 
AnswerRe: Deleting Items in CTreeCtrl Pin
kDevloper28-Jul-08 0:47
kDevloper28-Jul-08 0:47 
QuestionRe: Deleting Items in CTreeCtrl Pin
Adeel Mirza28-Jul-08 2:53
Adeel Mirza28-Jul-08 2:53 
Questionhow to share a variable value among two applications? Pin
rupanu27-Jul-08 23:27
rupanu27-Jul-08 23:27 
AnswerRe: how to share a variable value among two applications? Pin
_AnsHUMAN_ 27-Jul-08 23:41
_AnsHUMAN_ 27-Jul-08 23:41 
AnswerRe: how to share a variable value among two applications? Pin
CPallini27-Jul-08 23:48
mveCPallini27-Jul-08 23:48 
GeneralRe: how to share a variable value among two applications? Pin
rupanu28-Jul-08 1:01
rupanu28-Jul-08 1:01 
QuestionRe: how to share a variable value among two applications? Pin
CPallini28-Jul-08 1:40
mveCPallini28-Jul-08 1:40 
AnswerRe: how to share a variable value among two applications? Pin
Jijo.Raj28-Jul-08 2:08
Jijo.Raj28-Jul-08 2:08 

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.