06-24-2005
Unix internal
Hi ,
send me if know some links of Unix unternals such as thread programming , mutex , etc.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Would anyone know how to mount an internal modem on Solaris on PC? (7 Replies)
Discussion started by: softarch
7 Replies
2. UNIX for Advanced & Expert Users
We have about 300 users in the systeme , they mainly use the software called "netterm" to telnet our RH server to access the db in our internal network , I know there are some secure program like ssh , that is more secure for connection , do you think it is good idea to replace the software in our... (2 Replies)
Discussion started by: ust
2 Replies
3. UNIX for Dummies Questions & Answers
goodpeople, have a corrupt boot volume and systems keep's on crashing with it. suspecting drive is bad. question is how does one determine which of the 5 internal drives I have in my cage is hdisk0
any help would be appreciated
Thnx (2 Replies)
Discussion started by: Student37
2 Replies
4. Windows & DOS: Issues & Discussions
hi
I have two internal modems connected in my system.
For these two lines i have connected two separate telephone lines.
When i try to call from one modem through the telephone line i get connect message. when i try to call from the other telephone line connected to another modem i did not... (3 Replies)
Discussion started by: rajas1982
3 Replies
5. UNIX for Advanced & Expert Users
Hi Guys-
Does anyone know how to determine the unix user id that accessed a particular file?
For instance, we have a particular file under /usr/var/sample.exe ; I'm executing "ls -ltu /usr/var/sample.exe" and finds out that it has been accessed recently. How could i find out the user id that... (2 Replies)
Discussion started by: marlonus999
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication.
Can... (1 Reply)
Discussion started by: mshindo
1 Replies
7. Shell Programming and Scripting
i have a file named (Loop) that contains numbers separated by pipelines
e.g. :
521|55
545|564
.
.
.
and another file named (search) that contains numbers e.g.:
99999777|332|332
31215648|458|764
when i run this Script:
nawk 'BEGIN{FS="|"}
NR==FNR{a= $1"|"$2"|";next}
a{print... (2 Replies)
Discussion started by: guardianangel
2 Replies
8. Shell Programming and Scripting
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
Discussion started by: jdilts
3 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Unix internal algorithms like namei()
2. Relevant commands, code, scripts, algorithms:
System... (1 Reply)
Discussion started by: Phaneendra G
1 Replies
LEARN ABOUT FREEBSD
pthread_mutex_timedlock
PTHREAD_MUTEX_TIMEDLOCK(3) BSD Library Functions Manual PTHREAD_MUTEX_TIMEDLOCK(3)
NAME
pthread_mutex_timedlock -- lock a mutex without blocking indefinitely
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h>
#include <time.h>
int
pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abs_timeout);
DESCRIPTION
The pthread_mutex_timedlock() function will lock mutex. If it is already locked the calling thread will block until the mutex becomes avail-
able or the timeout, specified by abs_timeout, expires. The time of the timeout is an absolute time and is not relative to the current time.
RETURN VALUES
If successful, pthread_mutex_timedlock() will return zero, otherwise an error number will be returned to indicate the error.
ERRORS
The pthread_mutex_timedlock() function will fail if:
[EINVAL] The mutex was created with the protocol attribute having the value PTHREAD_PRIO_PROTECT and the calling thread's priority
is higher than the mutex's current priority ceiling.
[EINVAL] The process or thread would have blocked, and abs_timeout specified a nanosecond value less than zero or greater than or
equal to 1 billion.
[EINVAL] The mutex parameter is invalid.
[ETIMEDOUT] The mutex could not be locked before the timeout expired.
[EAGAIN] The mutex could not be acquired because the maximum number of recursive locks for the mutex has been exceeded.
[EDEADLK] The current thread already owns the mutex.
SEE ALSO
pthread_mutex_destroy(3), pthread_mutex_init(3), pthread_mutex_lock(3), pthread_mutex_trylock(3), pthread_mutex_unlock(3)
STANDARDS
The pthread_mutex_timedlock() function is expected to conform to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD
December 30, 2003 BSD