This is already my n-th attempt to write this program. Some help would be appreciated. I have created some children processes, a couple of them writes to a shared memory (array of ints, where the first element is the "counter" of all elements in the array). The other child deletes an element from the shared mem. I placed semaphores in appropriate places (I think) to protect the critical sections. But then each child is supposed to print out the whole array one character at a time. I did it like this:
note: buff is the pointer to the shm segment. I think the problem lies with the marked lines...(gcc gives me warnings there)
Hello,
How do I increase the size of /dev/shm ?
Additional pv have been added and rootlv has been extended How can I extend /dev/shm?
Best regards,
Vishal (1 Reply)
I am using redhat linux machine and oracle11g version.
/dev/shm shows 88%. Will this be freed automatically? OR should i clean any files?
>df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/systemvg-rootvol
7.6G 2.2G 5.1G 30% /... (5 Replies)
Hi,
OS = Solaris10
Can someone please advise what is the difference between the following two (2) output of the prctl commands?
# prctl -n zone.max-sem-ids $$
process: 18782: -sh
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
zone.max-sem-ids
... (0 Replies)