maintenance thread_semaphore