About 2,320 results
Open links in new tab
  1. Thread Management Functions in C - GeeksforGeeks

    Jul 11, 2025 · In C language, POSIX <pthread.h> standard API (Application program Interface) for all thread related functions. It allows us to create multiple threads for concurrent process flows. To …

  2. Multithreaded Programming (POSIX pthreads Tutorial)

    The pthread_mutex_init() function requires a pthread_mutex_t variable to operate on as the first argument. Attributes for the mutex can be given through the second parameter.

  3. POSIX Threads in OS - GeeksforGeeks

    Dec 10, 2022 · POSIX Threads in OS : The POSIX thread libraries are a C/C++ thread API based on standards. It enables the creation of a new concurrent process flow. It works well on multi-processor …

  4. Multithreading in C - GeeksforGeeks

    Jul 23, 2025 · The pthread_cancel ()function is used to request the cancellation of a thread. It sends a cancellation request to the target thread, but the actual termination depends on whether the thread is …

  5. Thread Libraries - GeeksforGeeks

    Jul 23, 2025 · Pthread are use to leverage the energy of multiple processors, because process is ruptured into thread and each thread use processor for perform task so here multiple thread are …

  6. Mutex lock for Linux Thread Synchronization - GeeksforGeeks

    Aug 25, 2025 · Thread synchronization ensures that multiple threads or processes can safely access shared resources without conflicts. The critical section is the part of the program where a shared …

  7. How to use POSIX semaphores in C language - GeeksforGeeks

    May 21, 2025 · A semaphore is a mechanism used in multithreaded programs for managing the access to shared resources, such as memory or files, by the threads when multiple tasks or threads are …

  8. Reader-Writer problem using Monitors (pthreads) - GeeksforGeeks

    Jul 11, 2025 · Mutexes (pthread_mutex_t) - Mutual exclusion lock: Block access to variables by other threads. This enforces exclusive access by a thread to a variable or set of variables. Condition …

  9. Handling multiple clients on server with multithreading using Socket ...

    Jul 23, 2025 · After successfully receiving data, call for pthread_create to create reader threads and writer threads. After making successful connections to the server-client asks the user for input on the …

  10. Dining Philosophers Problem - GeeksforGeeks

    Jul 23, 2025 · The Dining Philosopher Problem is a classic synchronization and concurrency problem that deals with resource sharing, deadlock, and starvation in systems where multiple processes …