Re: Multitasking in Mac OS Gets 100% CPU

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless_ said...

That there are spikes to 100% is almost expected. It's the long time between the spikes when it's sleeping that cpu should go to 0%.

I meant spikes as in "goes from almost zero to almost 100% very quickly." I suppose plateaus might be more appropriate, since after it gets to 100% it also stays there until the program exits. This would be the opposite of say, climbs, which would be "gradually increases from zero to 100% over several seconds."

jimcbrown said...

I think this was done back when we supported DOS so we could sleep for fractional seconds from DOS apps...

So, if you're actually calling to nanosleep, you could pass that fraction directly to it, correct?

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu