•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 391,590 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,653 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser:
Views: 1826 | Replies: 1
![]() |
•
•
Join Date: Jul 2005
Posts: 56
Reputation:
Rep Power: 4
Solved Threads: 0
You shouldn't. The concept of a semaphore is simple, you set the value to a number (in your case 4) when you use one of the resources you dec(-1) from the value and so on. Then if the value is <=0 then all sources are used so it waits for the value to be incremented again. You have to make sure that the single semaphore is used in all the processes. Basically pass it by reference to the threads.
At least thats how its implemented in linux, not sure about windows.
At least thats how its implemented in linux, not sure about windows.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
ajax applications asp blog business software computer dell design developer development erp systems firefox howto india intel internet it java linux media microsoft mmorpg msdn networking news office open open-source operating programming project management rss science security software software selection source sql sun super system technology evaluation tips toread vista web wiki windows xp
- Resources to check out before starting a new thread (Getting Started and Choosing a Distro)
- LOW RESOURCES problem (Windows 9x / Me)
- Winlogon.exe sucking cpu resources. (Windows NT / 2000 / XP / 2003)
- Excel Lack of Resources (Windows NT / 2000 / XP / 2003)
- Printer operation cannot continue due to lack of resources. (Windows NT / 2000 / XP / 2003)
- Launching program from resources (C)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: WANTED Software tool needing online support
- Next Thread: Dissertation computer science


Linear Mode