Top "Pthreads" questions

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

Pthread mutex assertion error

I'm encountering the following error at unpredictable times in a linux-based (arm) communications application: pthread_mutex_lock.c:82: __pthread_mutex_…

linux pthreads mutex assert glibc
Difference between pthread and fork on gnu/Linux

What is the basic difference between a pthread and fork w.r.t. linux in terms of implementation differences and …

linux-kernel pthreads fork
Share condition variable & mutex between processes: does mutex have to locked before?

I need to some little help to understand how to use condition variables in C to resolve an exercise. Here …

c pthreads ipc mutex condition-variable
Detached vs. Joinable POSIX threads

I've been using the pthread library for creating & joining threads in C. When should I create a thread as …

c linux pthreads detach
Non-blocking pthread_join

I'm coding the shutdown of a multithreaded server.If everything goes as it should all the threads exit by their …

c multithreading pthreads
C linux pthread thread priority

My program has one background thread that fills and swaps the back buffer of a double buffer implementation. The main …

c linux multithreading pthreads thread-priority
How pthread_mutex_lock is implemented

I am just curious to know how functions related to synchronization between threads are implemented inside Unix. For example, what …

linux unix synchronization pthreads mutex
type casting integer to void*

#include <stdio.h> void pass(void* ); int main() { int x; x = 10; pass((void*)x); return 0; } void pass(void* …

c linux pointers pthreads void-pointers
Will main() catch exceptions thrown from threads?

I have a pretty large application that dynamically loads shared objects and executes code in the shared object. As a …

c++ exception-handling pthreads
Timespec redefinition error

While executing a Pthread program in C using Visual Studio 2015, I got the following error: Error C2011 'timespec': 'struct' type …

c windows visual-studio pthreads timespec