Semaphore vs. Mutex

By Jaxson

  • Semaphore (noun)

    Any visual signaling system with flags, lights, or mechanically moving arms.

  • Semaphore (noun)

    A visual system for transmitting information by means of two flags that are held one in each hand, using an alphabetic and numeric code based on the position of the signaler’s arms.

  • Semaphore (noun)

    A bit, token, fragment of code, or some other mechanism which is used to restrict access to a shared function or device to a single process at a time, or to synchronize and coordinate events in different processes.

    “The thread increments the semaphore to prevent other threads from entering the critical section at the same time.”

  • Semaphore (verb)

    To signal using (or as if using) a semaphore.

  • Mutex (noun)

    An object in a program that serves as a lock, used to negotiate mutual exclusion among threads.

  • Mutex (verb)

    To apply a mutex to.


Leave a Comment