About 1,000,000 results
Open links in new tab
  1. multithreading - What is a semaphore? - Stack Overflow

    Aug 29, 2008 · A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community: What is a semaphore and how do you use it?

  2. Understanding Semaphores in C# - Stack Overflow

    Dec 23, 2021 · A Semaphore is a synchronization object that allows a limited degree of parallelism in a code section. For sake of simplicity, suppose you are instantiating a fresh new …

  3. How to create semaphores in shared memory in C? - Stack Overflow

    Aug 22, 2015 · Cross-process semaphores are an operating system specific operation. What most of these share is that you create the semaphore in one process via a virtual path which …

  4. What is the difference between lock, mutex and semaphore?

    Feb 25, 2010 · I've heard these words related to concurrent programming, but what's the difference between lock, mutex and semaphore?

  5. c - Differences between events and semaphores - Stack Overflow

    Mar 9, 2015 · I already searched for this subject but couldn't understand it very well. What are the main differences between events and semaphores?

  6. c++ - Why use a mutex and not a semaphore? - Stack Overflow

    Apr 27, 2025 · In general, mutex and semaphore target different use cases: A semaphore is for signalling, a mutex is for mutual exclusion. Mutual exclusion means you want to make sure …

  7. What is mutex and semaphore in Java ? What is the main difference?

    Apr 21, 2009 · It should also be pointed out that there are "binary" semaphores and "counting/general" semaphores. Java's semaphore is a counting semaphore and thus allows it …

  8. c - File Locking vs. Semaphores - Stack Overflow

    Aug 9, 2011 · The different locking/semaphore implementations all came to life on different systems. On System V Unix you had semget / semop, POSIX defined a different …

  9. c - Linker can't find semaphore functions - Stack Overflow

    Dec 1, 2019 · Options for Linking -pthread Link with the POSIX threads library. This option is supported on GNU/Linux targets, most other Unix derivatives, and also on x86 Cygwin and …

  10. multithreading - Semaphores values - Stack Overflow

    Feb 23, 2012 · I have a question regarding using Semaphores HANDLE WINAPI CreateSemaphore(...); Is there anyway I can get the current value of the semaphore?