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

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

 



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.


On 4/14/06, Thomas Petazzoni <thomas.petazzoni@xxxxxxxx> wrote:
> Hi,
>
> On Wed, 12 Apr 2006 14:58:32 +0530
> "Manjunath Naik" <peter.desouzain@xxxxxxxxx> wrote:
>
> >   main()
> >  {
> >      while(1);
> >   }
>
> If you put "main()" at the beginning, I'll assume this code is executed
> in userspace. Under Linux, userspace programs have always been
> preemptible. So, of course, this userspace program won't block all the
> system.
>
> The discussion concerning preemption between 2.4 and 2.6 only applies
> to the code executed by the kernel itself.
>
> Sincerly,
>
> Thomas
> --
> PETAZZONI Thomas - thomas.petazzoni@xxxxxxxx
> http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@xxxxxxxxx
> http://{agenda,livret}dulibre.org - http://www.toulibre.org
> Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7
>
>
>

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