冰河hi all, I am wondering how the cpu_idle works. Conceptually I know it is a endless loop to check whether the current task is needed to be scheduled, but my questions are: 1, how does need_resched() work? I dont understand how the test_bit() called inside is doing 2, how does default_idle work? what does it do? what does halt mean? 3, if once the cpu goes into idle with the while(1)-loop, will it be very busy (100% cpu utility) with looping around ?? thx for helping.... P.F. Tsai -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/