in reply to Re^2: Effective use of IPC::Semaphore to limit number of concurrent executions of a scxipt
in thread Effective use of IPC::Semaphore to limit number of concurrent executions of a scxipt

  • line 17: op(0, -1, SEM_UNDO) in place of setval(0, ($semval+1))
  • line 31: op(0,  1, SEM_UNDO) in place of setval(0, ($semval-1))

    Semaphores DECREMENT to lock, and INCREMENT to unlock.
    • Comment on Re: Re^2: Effective use of IPC::Semaphore to limit number of concurrent executions of a scxipt
    • Select or Download Code