[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pthreads again
- To: Daniel Feiglin <dilogsys(at-nospam)inter.net.il>
- Subject: Re: Pthreads again
- From: "Nadav Har'El" <nyh(at-nospam)math.technion.ac.il>
- Date: Mon, 26 Feb 2001 18:31:48 +0200
- Cc: IGLU <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Hebrew-Date: 4 Adar 5761
- In-Reply-To: <3A9A807D.6346F9A4@inter.net.il>; from dilogsys@inter.net.il on Mon, Feb 26, 2001 at 06:12:45PM +0200
- References: <3A9A807D.6346F9A4@inter.net.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.2i
On Mon, Feb 26, 2001, Daniel Feiglin wrote about "Pthreads again":
> Hello!
>
> I've been poking around "Understanding the LINUX Kernel: From I/O Ports
> to Process Management" by Daniel Pierre Bovet & Marco Cesati. They've
> got some good stuff on SVR4 style IPC implementation, but nothing on the
> POSIX threads implementation.
>
> Does anyone know if Linux PThreads, say at kernel level >= 2.2.16 is
> implemented in the kernel? What's a good RTFM on the Linux
> implementation (NOT stuff like Butenhoff, which is how to use them)?
Linus made a concious decision to have only minimal support for threads
in the Linux kernel: threads are in most respects exactly the same as
regular processes, except that they share the address space by using the
only (as far as I know) new system call added to Linux for threading -
clone(2), which is like fork(2) except the new process shares the old
address space (pages are not copied even on write).
See for example http://pauillac.inria.fr/~xleroy/linuxthreads/faq.html#K
(read the rest of that FAQ if you're interested in more important issues
about threads in Linux).
--
Nadav Har'El | Monday, Feb 26 2001, 4 Adar 5761
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |I couldn't think of an insteresting
http://nadav.harel.org.il |signature to put here... Maybe next time.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il