From owner-freebsd-questions Fri Aug 6 8:54:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.az.home.com (ha1.rdc1.az.home.com [24.1.240.66]) by hub.freebsd.org (Postfix) with ESMTP id 9B6871515D for ; Fri, 6 Aug 1999 08:54:37 -0700 (PDT) (envelope-from elgreen@iname.com) Received: from ehome.local.net ([24.9.114.169]) by mail.rdc1.az.home.com (InterMail v4.01.01.00 201-229-111) with SMTP id <19990806155356.UTCZ27077.mail.rdc1.az.home.com@ehome.local.net>; Fri, 6 Aug 1999 08:53:56 -0700 From: Eric Lee Green Organization: Myself @ Home To: "Geeta Mahesh" , Subject: Re: Urgent ... Multithreading on freebsd... Date: Fri, 6 Aug 1999 08:45:24 -0700 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain References: <000e01bee006$8f401600$030136ca@ugtech.com> MIME-Version: 1.0 Message-Id: <99080608541700.00452@ehome.local.net> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 06 Aug 1999, Geeta Mahesh wrote: > I have an application on FreeBSD 3.2 that uses posix pthreads for multithreading. > Though the application compiled and linked correctly, I found that no threading is taking place. Hi. Did you use the "-pthread" argument to gcc to tell it to use the threaded libc? > The whole application runs as a single thread even though I have created threads using the pthread api > pthread_create(). I also checked with the ps command and found that no thread is getting created. I'm not sure that pthreads under BSD will show up under "ps". Someone more familiar with FreeBSD will have to enlighten us there. -- Eric Lee Green http://members.tripod.com/e_l_green mail: e_l_green@hotmail.com ^^^^^^^ Burdening Microsoft with SPAM! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message