http://www.perlmonks.org?node_id=895752


in reply to Re^4: OT: Locking and syncing mechanisms available on *nix.
in thread OT: Locking and syncing mechanisms available on *nix.

Events can be achieved with a combination of conditional variables and a mutex. Check pthread_cond_timedwait()(search for it inside the page)
  • Comment on Re^5: OT: Locking and syncing mechanisms available on *nix.

Replies are listed 'Best First'.
Re^6: OT: Locking and syncing mechanisms available on *nix.
by BrowserUk (Patriarch) on Mar 27, 2011 at 15:15 UTC

    I know, but as I don't have anything I want to mutually exclude access to, I don't want to use the (by all accounts very expensive) mutex mechanism.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.