Date: Wed, 21 May 2003 23:44:16 +0100 From: Jay Cornwall <jay@evilrealms.net> To: Julian Elischer <julian@elischer.org> Cc: freebsd-hackers@freebsd.org Subject: Re: USB bulk read & pthreads Message-ID: <200305212245.h4LMjEVv006239@viper.evilrealms.net> In-Reply-To: <Pine.BSF.4.21.0305201638000.22764-100000@InterJet.elischer.org> References: <Pine.BSF.4.21.0305201638000.22764-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305212245.h4LMjEVv006239>