Re: Threading in linux

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

 



On 4/24/07, Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> wrote:
On Tue, 2007-04-24 at 12:08 +0530, Rick Brown wrote:
> Hi list,
>
> I read that the kernel does not differentiate between threads and
> processes.

Only for scheduling. Kernel maintains thread level data structures to
enable say fast context switch, mm sharing etc

Could you please give an examples?


>
> So as long as relevant system calls do not change, it should be
> possible to run any threading library on any kernel? NPTL on 2.4?
> pthreads on 2.6?

NPTL needs kernel support. It is 1:1 threading model without any
overhead under the assumption that kernel supports faster context
switches, less kernel entry overhead etc

AFAIK, all support that a kernel can provide userspace is in terms of
system calls. Do you mean that NPTL needs support in form of some
special syscalls? Or may be /dev/kmem etc?

Rick

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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