From owner-freebsd-questions Wed Jun 9 0:50:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id 5020C152C4 for ; Wed, 9 Jun 1999 00:50:47 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Wed, 9 Jun 1999 09:53:43 +0200 Message-ID: <55586E7391ACD211B9730000C110027617964C@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Bruce Pennypacker' , Woody Carey , freebsd-questions@FreeBSD.ORG Subject: RE: dual processor question Date: Wed, 9 Jun 1999 09:48:20 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Bruce Pennypacker [SMTP:BruceP@msn.com] > Sent: Tuesday, June 08, 1999 10:35 PM > To: Woody Carey; freebsd-questions@FreeBSD.ORG > Subject: Re: dual processor question > > The application is currently single threaded. I wasn't aware that > FreeBSD > supported multithreading. Some messages I came across when searching > on > freebsd.org seemed to indicate that it didn't support > multithreading... [ML] It does, but officially only in user space (I don't think LinuxThreads-kernel space threads have made it into a release yet). User space threads will not help you there because you still have just one thread of execution as far as the kernel sees it, you just longjmp in there a lot :( You will need to break the application into several processes in order to use additional CPU's. In fact, you can make all processes mmap the file and synchronize via SYSV semaphores--porting to kernel supported pthreads will then be trivial. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message