Use Semaphore.