mutexes in A Sentence

    1

    Mutexes always use the following sequence:.

    0
    2

    Mutexes have always provided sufficient ordering and visibility guarantees.

    0
    3

    Mutexes are designed to be held only for a short time;

    0
    4

    OTOH, Mutexes and the like could always be done as a library.

    0
    5

    Some resources cannot or should not be copied, such as file handles or Mutexes.

    0
    6

    If you use Mutexes to protect all your data, you really shouldn't need to worry.

    0
    7

    Apart from the fact that Mutexes have an owner, the two objects may be optimized for different usage.

    0
    8

    Officially:"Mutexes are typically used to serialise access to a section of re-entrant code that cannot be executed concurrently by more than one thread.

    0
    9

    Although to be frank, unless you are an expert and working on some serious low-level code, you should probably stick to Mutexes and condition variables.

    0
    10

    The spec does not even say anything about the atomicity of memory loads and stores or the order in which loads and stores might happen, never mind things like Mutexes.

    0
    11

    Typically you would use Mutexes to control a synchronised resource where exclusive access is only needed for very short periods of time, normally to make an update to a shared data structure.

    0