07-24-2008
how to clean Unused semaphore??
How can i clean up my unused semaphore???
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
One of my Solaris 8 machines hd was about to die. So I used g4u to create an image of the 9gb drive and I put it in a 36gb drive. That solved my dieing hd problem.
But....
How do I get my machine to see the unused 27gb of space?
Any help would be greatly appreciated. (1 Reply)
Discussion started by: Spyzic
1 Replies
2. AIX
Hi,
How do I query for unused partition in AIX 4.3 with DAS and SAA storage?
I know most unix administrator don't put all the capacity on the system at once.
thanks,
vene (1 Reply)
Discussion started by: venerayan
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Can you please let me know how to delete any files that have not been accessed in the past 28 days in a directory.
Thanks,
Arun (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
4. HP-UX
Hello,
I have a system with HP-UX 11.23 installed on it. There are ~36GB of unused space on the HDD. I did a very basic installation, and it created the usual volume group /dev/vg00. When I look at the output of ioscan -funC disk, I see this (and more, but irrelevant to this post):
disk ... (1 Reply)
Discussion started by: goon12
1 Replies
5. Solaris
i Have alloted 20G in my vmware for solaris 10, upon installation, and some distribution of disk space to /,/opt,swap i just use 19G.
Can i still use the 1G? How? how to see the 1G? that i did not use? how can i use it?
appreciate your responce (17 Replies)
Discussion started by: kenshinhimura
17 Replies
6. AIX
Hi,
In our AIX 5.2 server , we have one unused ethernet adapter which doesn't have cable connection . For this interface , we are getting alerts in errpt .
Could you suggesthow to stop this alert ? And sametime i would like to keep this device in ODM .
Is there... (1 Reply)
Discussion started by: sekarsamy
1 Replies
7. AIX
We have a system and we have modified the /etc/ind.conf and the
/etc/services and the /etc/rc.tcpip file to turn off specific applications.
I need to know what is the correct procedure for locking down unused
ports that still appear to be in a listen mode even... (1 Reply)
Discussion started by: admaix
1 Replies
8. Programming
Hello,
When creating shared memory in C, should be remove shared memory with shmctl function when don't need it. If it didn't remove, occupied shared memory stay and remain.
If we create shared memory repeatedly without removing unusable shared memory, /dev/shm will full.
Does Unix or... (1 Reply)
Discussion started by: pronetin
1 Replies
9. UNIX for Advanced & Expert Users
Hi guys...
The first active code line in AudioScope.sh is set -u .
This causes a complete exit if a variable is used/found but has not been allocated at the start of the program.
However, apart from writing code to do the task, is there a switch to to check which variables have been... (17 Replies)
Discussion started by: wisecracker
17 Replies
LEARN ABOUT OSF1
sem_trywait
sem_wait(3) Library Functions Manual sem_wait(3)
NAME
sem_wait, sem_trywait - Performs (or conditionally performs) a semaphore lock (P1003.1b)
LIBRARY
Realtime Library (librt.so, librt.a)
SYNOPSIS
#include <semaphore.h>
int sem_wait (
sem_t *sem);
int sem_trywait (
sem_t *sem);
PARAMETERS
sem Specifies a pointer to the semaphore to be locked.
DESCRIPTION
The sem_wait function locks the semaphore referenced by sem by performing a semaphore lock operation on it. If the semaphore value is zero,
the sem_wait function blocks until it either locks the semaphore or is interrupted by a signal.
The sem_trywait function locks a semaphore only if the semaphore is currently not locked. If the semaphore value is zero, the sem_trywait
function returns without locking the semaphore.
These functions help ensure that the resource associated with the semaphore cannot be accessed by other processes. The semaphore remains
locked until the process unlocks it with a call to the sem_post function.
Use the sem_wait function instead of the sem_trywait function if the process should wait for access to the semaphore.
RETURN VALUES
If the sem_wait or sem_trywait function returns successfully, a value of 0 (zero) is returned and the function executes the semaphore lock
operation.
On an unsuccessful call, a value of -1 is returned and errno is set to indicate that an error occurred. The state of the semaphore remains
unchanged.
ERRORS
The sem_wait and sem_trywait functions fail under the following conditions:
[EAGAIN] The semaphore was already locked and cannot be locked by the sem_trywait operation (sem_trywait only).
[EINTR] A signal interrupted this function.
[EINVAL] The sem argument does not refer to a valid semaphore.
RELATED INFORMATION
Functions: sem_post(3)
Guide to Realtime Programming delim off
sem_wait(3)