Skip to content
Advertisement

how to implement POSIX threads ( pthread.h ) on fedora 9

I need to use pthreads but it seems that I do not have it in my fedora and I cannot found how to install it. Thanks

Advertisement

Answer

Fedora 9 uses Linux Kernel version 2.6 and this version is fully compatible with libc 2.3.2. This libc contains the pthread.h header.

Check this implementation example.

JavaScript

And compile with:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement