Demo Semaphore and the concept of object pool.