Question: Consider the above example but with an Operating System that is able to turn off most power to the CPU when all threads are sleeping.

Consider the above example but with an Operating System that is able to turn off most power to the CPU when all threads are sleeping. A "sleep(int milliseconds)" function is available that causes the calling thread to sleep for the specified number of milliseconds.
Changing only thread2():
void thread2()
{
while(true)
{
threadRunning =2;
sleep(1000);
}
}
Will the CPU enter a low power mode?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!