semaphore
Homework - queue using semaphore and mutexes
...SO I fixed it a bit, but it says now ... Test of acceleration: Program acrossed time limit... Duration: 5 sec !(limit 8 sec)!...[详细]
2023-02-19 17:45 分类:问答How can I prevent semaphore lockup when thread is terminated with bus error
I am developing a Linux device driver running on an embedded CPU. This device driver control some external hardware. The external hardware has it\'s own DDR controler and external DDR. The hardware\'s[详细]
2023-02-19 12:46 分类:问答Does this section of code require a mutex?
I am trying to implement a crude thread interrupt. The \'interruptRequested\' variable is being checked pretty often. In Operating Systems class we learned about starvation -- Is that possible here o[详细]
2023-02-18 23:06 分类:问答How can you implement a condition variable using semaphores?
A while back I was thinking about how to implement various synchronization primitives in terms of one another.For example, in pthrea开发者_开发知识库ds you get mutexes and condition variables, and fro[详细]
2023-02-18 16:57 分类:问答Librarian resource allocation problem with Semaphore in Java
Please help me with this two-part question. Here is the first part: (Part 2: I have updated the code since - requirements have changed a[详细]
2023-02-18 12:00 分类:问答What happens when a process enters a semaphore (critical section) and sleeps?
As per my understan开发者_运维问答ding, when a process enters a critical section, no other process can simultaneously enter. But i see, by a program, that it is not.[详细]
2023-02-16 18:34 分类:问答Using semaphore to control number of threads
How can I make use of Semapho开发者_如何学Pythonre class in order to control number of threads that have an access to an object?[详细]
2023-02-16 17:31 分类:问答Is there a Mutex in Java?
Is there a Mutex object in java or a way to create one? I am asking because a Semaphore object initialized with 1 permit does not help me.[详细]
2023-02-16 08:37 分类:问答Fatal error: Call to undefined function sem_get()
I\'m new to PHP and I\'m trying to run code I got from someone else on my Windows development machine. I installed PHP 5 and Apache 2.2, but when I try to run it I get开发者_开发知识库 the error:[详细]
2023-02-16 00:46 分类:问答Bug in code using boost named_semaphore
I would keep some data in shared memory, using named semaphores to manage access: #include <boost/interprocess/sync/named_semaphore.hpp>[详细]
2023-02-16 00:32 分类:问答