semaphore
What are (OS) monitors?
I\'m studying OS synchronization problems. I understand semaphores and their use in reader-writer and producer-consumer situations. 开发者_开发百科I\'m not getting the concept of monitors, though. Can[详细]
2023-02-28 00:28 分类:问答Java programming using semaphores and shared variables
Hey everyone, I have a task to perform at school and really don\'t know how to get started. I don\'t want the whole solution, but rather tips and how to get started with this. Sorry but I\'m new to pr[详细]
2023-02-27 04:05 分类:问答When should I use semaphores?
When would one use semaphores ? Only example I can think of is limiting the number of threads accessing t开发者_JS百科he same data/code simultaneously...[详细]
2023-02-23 07:17 分类:问答Java Thread communicaton
I am doing a project in which I must make threads communicate. For instance I have two thread arrays, c[100] and e[10]. (c开发者_StackOverflow中文版ustomers and employees)[详细]
2023-02-23 04:42 分类:问答Is there a way to make sem_wait not spin?
I\'m currently working on a cross-platform task scheduler, but I\'m having a problem with sem_wait spinning while waiting for the semaphore. On Windows, I\'m using WaitForSingleObject, which yields th[详细]
2023-02-23 02:13 分类:问答In c++ how do you declare a binary semaphore?
I am trying to declare a binary semaphore in C++. Is there a way to do it by using Semaphore X; ? What is the 开发者_运维技巧header you need to include?[详细]
2023-02-22 17:17 分类:问答Using binary semaphores as a counting semaphore
I am working on a project dealing with the reader writer problem. We are supposed t开发者_JAVA百科o use binary semaphores as a counting semaphore.[详细]
2023-02-22 12:33 分类:问答Waiting thread count and working thread count on Semaphore
Is there any way to find that ho开发者_运维百科w many threads are waiting on semaphore? how many threads have currently occupied semaphore?[详细]
2023-02-20 14:14 分类:问答Ruby Semaphores?
I\'m working on an implementation of the \"Fair Barbershop\" problem in Ruby. This is for a class assignment, but I\'m not looking for any handouts.I\'ve been searching like crazy, but I cannot seem t[详细]
2023-02-20 11:14 分类:问答How to implement a distributed semaphore?
I have a limited set of resources that I want to share between multiple processes than run on multiple servers. I guess what I need could be called a distributed semaphore.[详细]
2023-02-20 08:22 分类:问答