From owner-freebsd-questions Fri Jul 19 10:39:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B73A837B400 for ; Fri, 19 Jul 2002 10:39:36 -0700 (PDT) Received: from alpha.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CA7143E42 for ; Fri, 19 Jul 2002 10:39:34 -0700 (PDT) (envelope-from culverk@yumyumyum.org) Received: from alpha.yumyumyum.org (localhost [127.0.0.1]) by alpha.yumyumyum.org (8.12.5/8.12.3) with ESMTP id g6JHcf31055223; Fri, 19 Jul 2002 13:38:41 -0400 (EDT) (envelope-from culverk@yumyumyum.org) Received: from localhost (culverk@localhost) by alpha.yumyumyum.org (8.12.5/8.12.3/Submit) with ESMTP id g6JHceQ0055220; Fri, 19 Jul 2002 13:38:40 -0400 (EDT) (envelope-from culverk@yumyumyum.org) X-Authentication-Warning: alpha.yumyumyum.org: culverk owned process doing -bs Date: Fri, 19 Jul 2002 13:38:40 -0400 (EDT) From: Kenneth Culver To: =?iso-8859-1?Q?Jo=E3o_Esteves?= Cc: questions@FreeBSD.ORG Subject: Re: pthreads implementation is FreeBSD In-Reply-To: <000801c22f4a$9f201340$2d03a8c0@CRITICAL.PT> Message-ID: <20020719133628.S55134-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I'm searching the web for the implementation of pthreads in different > UNIX-like OS's but I can't find a clear documentation about the way that > FreeBSD(and family Net, Open) uses to implement it. > > My first question is; does FreeBSD implements a thread as a process(like > Linux and other ystems) or it supports threads in a native way? No, FreeBSD (-STABLE) uses a userland thread mechanism... it's actually faster than the process based approach as long as the kernel doesn't get involved (for things like disk io and whatever) > My second question is; all the BSD family uses the same approach to the > thread implementation? I don't have the slightest idea what NetBSD or OpenBSD do. Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message