The semaphore tag has no wiki summary.
0
votes
0answers
7 views
Unexpected Output Running Semaphore [migrated]
I'm trying to write a program that forks another process and stays in sync so that the first process doesn't start its (i)th iteration until the second process has finished its (i-1)th iteration. Is ...
5
votes
1answer
58 views
How to get proccesses currently running semaphores by /proc?
I wonder how to get processes currently running semaphores by /proc ? I guess it's possible by SysVIPC subdirectory.But I don't know how to use this commands.
Ubuntu 12.10
3
votes
1answer
199 views
Httpd : no space left on device
I am using Fedora 17 and over the last few days I am having an issue with my system. Whenever I try to start httpd it shows me:
Error: No space left on device
When I execute systemctl status ...
3
votes
1answer
2k views
How do I increase the number of semaphore arrays in Linux?
In a Debian lenny server running postgresql, I noticed that a lack of semaphore arrays is preventing Apache from starting up.
Looking at the limits, I see 128 arrays used out of 128 arrays maximum, ...
8
votes
3answers
9k views
what is the difference between spin locks and semaphores?
What are the basic differences between spin locks and semaphores in action?
1
vote
3answers
2k views
Why are spin locks good choices in Linux Kernel Design instead of something more common in userland code, such as semaphore or mutex?
I understand that Spinlocks are real waste in Linux Kernel Design.
I would like to know why is it like spin locks are good choices in Linux Kernel Design instead of something more common in userland ...
21
votes
5answers
3k views
What Unix commands can be used as a semaphore/lock?
I want to run multiple Bash shell scripts in parallel. However, I want to avoid race conditions. What Unix commands are truly atomic that I could use for this purpose, and how can I use them?