semaphore and block id