From owner-freebsd-hackers@FreeBSD.ORG Wed May 21 15:45:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA69F37B401 for ; Wed, 21 May 2003 15:45:48 -0700 (PDT) Received: from viper.evilrealms.net (evilrealms.demon.co.uk [62.49.12.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97F0D43F93 for ; Wed, 21 May 2003 15:45:47 -0700 (PDT) (envelope-from jay@viper.evilrealms.net) Received: from viper.evilrealms.net (jay@localhost [127.0.0.1]) by viper.evilrealms.net (8.12.8/8.12.8) with ESMTP id h4LMjEbh006240; Wed, 21 May 2003 23:45:14 +0100 Received: from localhost (localhost [[UNIX: localhost]]) by viper.evilrealms.net (8.12.8/8.12.8/Submit) id h4LMjEVv006239; Wed, 21 May 2003 23:45:14 +0100 Message-Id: <200305212245.h4LMjEVv006239@viper.evilrealms.net> From: Jay Cornwall To: Julian Elischer Date: Wed, 21 May 2003 23:44:16 +0100 User-Agent: KMail/1.5.1 References: In-Reply-To: MIME-Version: 1.0 Content-Description: clearsigned data Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: USB bulk read & pthreads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2003 22:45:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 21 May 2003 00:40 am, Julian Elischer wrote: > You should load teh "linuxthreads" port > and link with that.. Ah, I hadn't noticed there was a port of this for FreeBSD. I'll give it a try, thanks. :) > under 5.x you will be able to use the native threads (we will have > several to choose from :-) > > under 4.x (I presume that's what you are using) the threading is all in > one process and if a device decides to return "data waiting" in select() > but keeps the reader waiting, it will block the entire process. Hmm, actually this is with a FreeBSD 5.0 (RELENG_5_0) system. The pppoa3 application uses libpthread for its threading implementation; does FreeBSD 5.0 (5.x?) have a different system for threading as well? We currently have a non-threaded application pppoa2 which performs the task very well, but the newer version pppoa3 uses pthreads (which works fine under Linux, but not under FreeBSD). Thanks for your help. :) Cheers, Jay - -- http://www.evilrealms.net/ - Systems Administrator & Developer http://www.ic.ac.uk/ - Imperial College, 2nd year CS student -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+zAFCfJLn3O/2GbERAv8HAKDjLC8nx2BBSMgbjhutpOBddlDaJQCfUGsx CkBPYdXUOMPeGilEbUB4OMI= =Ag0m -----END PGP SIGNATURE-----