What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Mutex vs Locking - What's the difference?

mutex | locking |

As nouns the difference between mutex and locking

is that mutex is an object in a program that serves as a lock, used to negotiate mutual exclusion among threads while locking is the act by which something is locked.

As verbs the difference between mutex and locking

is that mutex is {{cx|computing|programming|transitive|lang=en}} To apply a mutex to while locking is present participle of lang=en.

mutex

English

Noun

(es) (wikipedia mutex)
  • (computing, programming) An object in a program that serves as a lock, used to negotiate mutual exclusion among threads.
  • Verb

    (en-verb)
  • To apply a mutex to.
  • * 2002 , "Steve Connet", Re: best way to interrupt a select() call in a (POSIX) thread?'' (on newsgroup ''comp.programming.threads )
  • Or you can have a single pipe that is mutexed' so each thread can only write to the pipe exclusively. Alternatively, you can have each thread put the finished fd in a globally ' mutexed list.

    locking

    English

    Verb

    (head)
  • Noun

    (en noun)
  • The act by which something is locked.
  • * 1862 , Wilkie Collins, No Name
  • On the other hand, it was just as probable that these comings and goings, these lockings and unlockings, might be attributable to the existence of some private responsibility, which had unexpectedly intruded itself into the old man's easy existence...
  • (computing) Using a lock or a mutex to restrict the access to a part of a code to at most one process.
  • Derived terms

    * double-checked locking