10 More Discussions You Might Find Interesting
Can somebody please explain me what semaphores are? there purpose? and there effects?
Thanks in advance:) (0 Replies)
Discussion started by: Laxxi
I am building a server. this server contains some data. Clients may modify this data or read this data.
If a client is reading the data and at the same time another client is modifying the data then at this case the reading client may read some false data (some old mixed with... (1 Reply)
Discussion started by: Omar_Mokhtar
3. UNIX for Dummies Questions & Answers
I am having problem with semaphores. I am trying to protect line where process prints so that every process with print in proper order.This is the code..
union... (3 Replies)
Discussion started by: joker40
On this SLES 10 box I found (what I think) an abnormal huge shmmax value.
hostname:~ # cat /proc/sys/kernel/shmmax
Perhaps there is a malconfigured startup script on the machine somwhere? But where/how do I find/set the default value of... (2 Replies)
Discussion started by: sap4ever
5. UNIX for Advanced & Expert Users
Allocated is showing in hexadecimal which comes to 1 GB
But the usage is showing more (14 GB). Can you please explain why? Normally, usage should be less than allocated
$ /usr/sbin/kmtune -q shmmax
Parameter Current... (4 Replies)
Discussion started by: somesh_p
6. UNIX for Advanced & Expert Users
Hello, first of all I apologize if this thread is not in the correct section of this forum, but this one just seemed the most appropriate.
The question I have does not concern Unix specifically, it applies to virtually any OS, however it is in Unix where I learned about this problem.
So, the... (8 Replies)
Discussion started by: Watto86
been searching around on how to use an up and down function with semaphores but i can't find an example. i looked into using: "semop" but i have no idea how to use it. I have been able to declared the semaphores using semget and initializing them using semctl. (7 Replies)
Discussion started by: ddx08
8. Shell Programming and Scripting
If i execute this command it comes back with 300 lines:
ipcs|grep cerebrus >>> i would like to clear the semaphores but ipcrm can remove one id at a time. is there a quicker way of removing semaphores maybe using awk?
Regards, (1 Reply)
Discussion started by: kekanap
Could someone please confirm which POSIX semaphore routines should be used for a multiprocess (and not multithreaded) environment?
sys/sem.h definitely works. but the routines, semget, semctl, semop are pretty unwieldy. So, I am looking for an easier way out.
From the man pages... (2 Replies)
Discussion started by: qntmteleporter
I'm in a multiprocess environment working with shared mem and semaphores as mutex.. The problem is -- If one of the process hooked up with the semaphore and accessing the shared mem, terminates abruptly ( or got killed ), other process which are in want of the semaphore are... (1 Reply)
Discussion started by: joseph_shibu