USB bulk read & pthreads

Jay Cornwall jay at evilrealms.net
Wed May 21 15:45:49 PDT 2003


-----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-----



More information about the freebsd-hackers mailing list