network/multithreaded programming on FreeBSD

Pietro Cerutti gahr at
Mon Jul 30 23:15:39 UTC 2007

Karol Kwiatkowski wrote:
> Michael S wrote:
>> Good day all,
>> I am not sure this is the correct list for my
>> question, I am still going to ask though. 
>> I am a 3rd year computer science student and in the
>> fall I am going to be taking courses in network and
>> system programming (with pthread). As a lot of
>> universities do, mine also teaches these courses on
>> Linux. I was wondering if there was a lot of
>> difference in socket and multi-threaded programming
>> between Linux and FreeBSD?

Hi Michael,
the system calls you'll need for networking socket programming and
pthreads are POSIX compliant on both linux and freebsd.
Thus, you'll be able to port your programs between the two systems.

I suggest to refer to the POSIX pages on threads:
and sockets:

and to read the wonderful Beej's guite to network programming:

>> Thanks in advance,
I hope this helps,

>> Michael

Pietro Cerutti

PGP Public Key:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-hackers mailing list