About 52 results
Open links in new tab
  1. 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.

  2. 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 …

  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. Conditional wait and signal in multi-threading - GeeksforGeeks

    Jan 27, 2023 · What are conditional wait and signal in multi-threading? Explanation: When you want to sleep a thread, condition variable can be used. In C under Linux, there is a function …

  7. 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 …

  8. pthread_self () in C with Example - GeeksforGeeks

    Oct 28, 2019 · Prerequisite : Multithreading in C Syntax :- pthread_t pthread_self (void); The pthread_self () function returns the ID of the thread in which it is invoked.

  9. pthread_cancel () in C with example - GeeksforGeeks

    Sep 6, 2017 · prerequisite: Multithreading, pthread_self () in C with Example pthread_cancel () = This function cancel a particular thread using thread id. This function send a cancellation request to the …

  10. 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 …