From owner-freebsd-questions Wed Mar 5 4:50: 8 2003 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 1BED237B401 for ; Wed, 5 Mar 2003 04:50:07 -0800 (PST) Received: from web10708.mail.yahoo.com (web10708.mail.yahoo.com [216.136.130.216]) by mx1.FreeBSD.org (Postfix) with SMTP id C586F43FAF for ; Wed, 5 Mar 2003 04:50:06 -0800 (PST) (envelope-from bhatt_manas@yahoo.com) Message-ID: <20030305125006.98208.qmail@web10708.mail.yahoo.com> Received: from [202.144.73.10] by web10708.mail.yahoo.com via HTTP; Wed, 05 Mar 2003 04:50:06 PST Date: Wed, 5 Mar 2003 04:50:06 -0800 (PST) From: Manas Subject: a question on threads To: freebsd-questions@FreeBSD.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 hi, I wrote a threaded program and ran it. When i did top , i saw a numbers of instances of the same program running with different pids. Since a thread exist in a process, therefore there should have been only one instance of the process not many. I want to know how freeBSD implements pthreads and would it be advantages to use threads in freeBSD as compare to forking multiple instances. thanks manas __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message