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 the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux