in reply to RE: Re: Non-Blocking Semaphore
in thread Non-Blocking Semaphore

Time::HiRes offers ualarm if you want and your OS has the command available. You can import their alarm as well.

Yet another solution on systems which support SysV semantics (Linux does, Windows probably doesn't...) is to use IPC::Semaphore.