Top "Pthreads" questions

Pthreads (POSIX Threads) is a standardised C-based API for creating and manipulating threads.

Undefined reference to pthread_create in Linux

I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/ #include <pthread.h&…

c linux multithreading pthreads
how to get thread id of a pthread in linux c program?

In linux c program, how to print thread id of a thread created by pthread library? for ex: we can …

c linux pthreads
What's the difference between deadlock and livelock?

Can somebody please explain with examples (of code) what is the difference between deadlock and livelock?

multithreading pthreads deadlock livelock
Multiple arguments to function called by pthread_create()?

I need to pass multiple arguments to a function that I would like to call on a separate thread. I've …

c pthreads
cmake and libpthread

I'm running RHEL 5.1 and use gcc. How I tell cmake to add -pthread to compilation and linking?

pthreads cmake
Can I get Unix's pthread.h to compile in Windows?

If I try to compile a program with #include <pthread.h> in it, I get the error: pthread.…

c windows multithreading pthreads
How to return a value from pthread threads in C?

I'am new to C and would like to play with threads a bit. I would like to return some value …

c pthreads
pthread_join() and pthread_exit()

I have a question about C concurrency programming. In the pthread library, the prototype of pthread_join is int pthread_…

c multithreading concurrency pthreads
mingw-w64 threads: posix vs win32

I'm installing mingw-w64 on Windows and there are two options: win32 threads and posix threads. I know what is the …

windows gcc pthreads mingw
Still Reachable Leak detected by Valgrind

All the functions mentioned in this block are library functions. How can I rectify this memory leak? It is listed …

c pthreads valgrind