How Does Preemptive and non-Preemptive kernel works in following case.

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

 



I have program as shown below,

  main()
 {
     while(1);
  }


  it is infinite loop without exit condition. So the program will
consume all the CPU or hogs the CPU. How this scenarios is handled in
both preemtive and non-preemtive schedular.

   Whether this process will be killed  after some time by OS. If yes
which process does this and how it does since that process wonot get
CPU time.

Thanks
Manjunath Naik

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