From owner-freebsd-questions Fri Jul 19 11: 4:56 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 105C837B400 for ; Fri, 19 Jul 2002 11:04:54 -0700 (PDT) Received: from mail.isg.siue.edu (mail.isg.siue.edu [146.163.5.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4369443E31 for ; Fri, 19 Jul 2002 11:04:53 -0700 (PDT) (envelope-from vcardon@siue.edu) Received: from WEBSHIELD1.isg.siue.edu (webshield1.isg.siue.edu [146.163.5.149]) by mail.isg.siue.edu (8.9.1/8.9.1) with SMTP id NAA14369 for ; Fri, 19 Jul 2002 13:04:49 -0500 (CDT) Received: FROM _HOSTNAME_ BY WEBSHIELD1.isg.siue.edu ; Fri Jul 19 13:04:48 2002 -0500 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Fri, 19 Jul 2002 13:07:08 -0500 Date: Fri, 19 Jul 2002 13:07:08 -0500 From: vcardon To: Jo?o Esteves Cc: questions@FreeBSD.ORG Subject: Re: pthreads implementation is FreeBSD Message-ID: <20020719180708.GA24632@spastic.siue.edu> References: <000801c22f4a$9f201340$2d03a8c0@CRITICAL.PT> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline In-Reply-To: <000801c22f4a$9f201340$2d03a8c0@CRITICAL.PT> User-Agent: Mutt/1.4i 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 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 19, 2002 at 06:35:05PM +0100, Jo?o Esteves wrote: > 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? Actually Linux uses kernel threads that mimic processes. Linux uses the same mechanism to create processes and threads, but threads are not really processes in the strictest sense. > My second question is; all the BSD family uses the same approach to the thread implementation? I only know about FreeBSD. It uses userland threads. Userland threads are faster to create, because you never cross into kernel space, but they do add some complications. Victor --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9OFVMZU/bSegbOhwRAsyYAKCV92OYQoJ4hzRkP3hipn4y5utWkgCfRT9n pZbtdJZMoDPgLrjKDdnHhm0= =UEXm -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message