Although it's not entirely clear, I think the OP is actually asking about IPC::Semaphore rather than Thread::Semaphore. In any case, both these modules have been included in core since 5.005, so the OP is unlikely to need to install either of them from CPAN.