Re: Kernel preemption -- demo does not work

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

 



Hello Arun...


> 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) ?

Inside the loop, there is a call to sleep() for 1 second on each 
iteration :) That means, it voluntarily yields the CPU :)

regards

Mulyadi


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


[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