Re: Kernel preemption -- demo does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mulyadi

On 4/11/06, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
Sorry for the late reply. I have tried to test your user space test
program and the kernel module inside my Qemu virtual machine. And the
result is...there is no delay inside the user space test program. The
loop is still counting while the kernel module is correctly busy
waiting for 10 seconds (10*HZ).



I have a question here. Please CMIIW.

The user space prog. is given SCHED_FIFO priority, which means it dosent have timesliced-scheduling and runs till it volutarily yields the CPU . Since it has an infinite loop shouldnt it be scheduled forever. So how will the kernel module get to exit ?( i.e., when will the time_before() check gets executed) ?

rgds
Arun
 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




--
"There are 10 people in the world - those who understand binary and those who dont !"

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux