Semaphore usage, this is important, there is a question about static resource, how to own a resource to your code?