– Why does daemon process dont spike cpu usage to 100% whereas an infinite for loop does ?

295 views

A daemon process is supposed to be running all the time waiting for user to do something and then respond right ? Does “All the time” mean infinite time ? (Infinite loop) ?

When I run an infinite for loop, the cpu usage spikes to 100% ? Why is it so ?

Thank you for your time.

In: 4

3 Answers

Anonymous 0 Comments

Well it’s not trying to scan at your clock speed for one. It’s set to intervals. It’s not always actively processing either, many times it’s interrupt driven by certain actions.

You are viewing 1 out of 3 answers, click here to view all answers.