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

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

 



On 4/14/06, Jesper Juhl <jesper.juhl@xxxxxxxxx> wrote:
> On 4/14/06, Manjunath Naik <peter.desouzain@xxxxxxxxx> wrote:
> > ok, If this code is kernel code(their is no main) and  writer has done
> > some mistake, In this case how the kernel is going to handle this.
> >
> [snip]
> > > >  {
> > > >      while(1);
> > > >   }
> [snip]
>
> If this is kernel code you've got a serious problem.
> The kernel is not going to magically "handle it", the kernel assumes
> that people who write kernel code don't do crazy things like that.
In this case, only interrupts handlers would run depending on whether
interupts are enabled or not.

Regards,
Om.

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