semaphore
Simple Java code allow single thread access and other threads to skip/move on
In others words I don\'t want a thread to wait if it cannot access the lock (as in synchonization), I want to thread execution to simply return immediately at that point if it cannot obtain the lock.[详细]
2023-04-03 13:44 分类:问答How to check the state of a semaphore
I want to check the state of a Semaphore to see if it is signalled or not (so if t is signalled, I can release it). How can I do this?[详细]
2023-04-02 20:46 分类:问答Cleanup of semaphore in Python
I\'m using a semaphore to hand work off to another thread in Python.I.e. the master thread will put an item on a queue, then call the semaphore\'s release method; the worker thread will call acquire o[详细]
2023-04-02 09:21 分类:问答Semaphores and Lock in ASP MVC3
I am working with Asp.net MVC 3. Any reason why I cannot create a single instance of a thread process in MVC? I am trying to allow a single instance of a worker process one at a time. however it is al[详细]
2023-04-01 00:15 分类:问答PHP Semaphores causing failures?
Our web servers have seen random PHP request failures for some requests that involve semaphores. We traced and suspected the request died somewhere due to sem_*() functions in PHP but we were unable t[详细]
2023-03-31 10:02 分类:问答Segmentation Fault when deleting an existing object
My code have one thread continuosly handling objects queued by other threads. Queued objects are created using \"new\" in a function that will have finished when the object will be handled. I have no[详细]
2023-03-31 02:48 分类:问答How do you get the current count from CSemaphore?
I am trying to debug a multi-thr开发者_开发技巧eaded program that uses CSemaphore to limit the size of a buffer.[详细]
2023-03-29 00:51 分类:问答Thousands of reader/writer locks in a single process
I am currently designing a C++ cross-platform (Linux/Windows) server application with a large-scale synchronization pattern. I internally use boost::thread as an abstraction of the OS-specific threads[详细]
2023-03-26 13:01 分类:问答Can a semaphore be initialized multiple times
Is it ok to initialize a semaphore any num开发者_运维百科ber of times within a program after being used so that it can be used again.[详细]
2023-03-24 23:00 分类:问答Semaphore without destruction/unmapping race condition
Note: I have heavily edited this question for clarity after making a mess of it brainstorming in public. However the actual algorithms described, and the question about whether they\'re sufficient to[详细]
2023-03-24 18:35 分类:问答