PDA

View Full Version : FreeBSD threading model


bsd_newbie
February 7th, 2009, 09:12
I am planning to design a concurrent server where I intend to handle each client using a thread. I am also planning to use posix threads for this purpose. Which threading lib should I link my app.
This is on FreeBSD 6.2. Should it be -lthr or -lpthreads or something else. I need to have 1:1 threading support which means each thread becomes a schedulable entity in the kernel.

thanks

hydra
February 7th, 2009, 10:13
man pthread

brd@
February 8th, 2009, 18:16
You should really use FreeBSD 7.1, threading has been improved since 6.x. Or at the very least you should upgrade to a supported release. See this table for more information:

http://security.freebsd.org/#sup