01-18-2011
This User Gave Thanks to vistastar For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
At work, we use a software development product (from a company that will remain nameless, but whose name may be considered a synonym for "logical"). The development trees are organized beneath a top directory, let's call it "$rat". The first level under $rat contains the major system names, and... (2 Replies)
Discussion started by: criglerj
2 Replies
2. UNIX for Dummies Questions & Answers
Hello
im looking for sites or tutorials how to extend vi (not vim) for
programming and scripting beyond simple editing .
Thanks allot (0 Replies)
Discussion started by: umen
0 Replies
3. UNIX for Dummies Questions & Answers
How to invoke ESC+K to get recent commands in Korn Shell.
In some of the unix machine ESC+K is available and in some machines, it does not work. All of the machines that I work have Korn shell. (5 Replies)
Discussion started by: bobbygsk
5 Replies
4. Shell Programming and Scripting
Hi Guys,
I have a script that I am using to convert some text files to xls files. I create multiple temp. files in the process of conversion. Other than reducing the temp. files, are there any general tricks to help speed up the script?
I am running it in the bash shell.
Thanks. (6 Replies)
Discussion started by: npatwardhan
6 Replies
5. Shell Programming and Scripting
hi
i remember sometime back working in unix, when u dont recall a complete file name..u hit ESC key couple of times and actual complete name of that file which u looking for , gets visible
For this to be enabled , do we need to make any entry in .profile file.
In my current project, am... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies
6. Solaris
I downloaded vim.7.2 and compiled the vim source .
Added the vim binary path to PATH (Because iam not the root of the box)
when i load the file using vim it throws me an error
Error detected while processing /home2/e3003091/.vimrc:
line 2:
E185: Cannot find color scheme darkblue
line... (0 Replies)
Discussion started by: girija
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
We used to use the below commands often.
ps -ef|grep bc
ps -ef|grep abc|grep -v grep
Both fairly returns the same result.
For example, the process name is dynamic and we are having the process name in a variable, how we can apply the above trick.
For example "a" is the... (11 Replies)
Discussion started by: pandeesh
11 Replies
8. Programming
HI Guys ,
Below are the two columns ITEMS and STATE of table .
ITEMS STATE
'2345','ggdh','k5tg','dgyt','hFF' DF
'1234','ghyt','DDD','GHTD','ABF' PQ
Can we get output in PL/SQL in below way ?... (7 Replies)
Discussion started by: Perlbaby
7 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Is there any command to do this --
Input is --
Ant
Bat
Cat
Dog
Output is --
A_Ant
B_Ant
A_Bat
B_Bat
A_Cat
B_Cat
A_Dog
B_Dog (12 Replies)
Discussion started by: Indra2011
12 Replies
LEARN ABOUT OSF1
pthread_rwlock_rdlock
pthread_rwlock_rdlock(3) Library Functions Manual pthread_rwlock_rdlock(3)
NAME
pthread_rwlock_rdlock - Acquires a read-write lock for read access.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_rwlock_rdlock(
pthread_rwlock_t *rwlock);
PARAMETERS
Address of the read-write lock object to acquire for read access.
DESCRIPTION
This routine acquires a read-write lock for read access. If no thread already holds the lock for write access and there are no writers
waiting to acquire the lock, the lock for read access is granted to the calling thread and this routine returns. If a thread already holds
the lock for read access, the lock is granted and this routine returns.
A thread can hold multiple, concurrent locks for read access on the same read-write lock. In a given thread, for each call to this routine
that successfully acquires the same read-write lock for read access, a corresponding call to pthread_rwlock_unlock must be issued.
If some thread already holds the lock for write access, the calling thread will not acquire the read lock. If the read lock is not
acquired, the calling thread blocks until it can acquire the lock for read access. Results are undefined if the calling thread has already
acquired a lock for write access on rwlock when this routine is called.
If the read-write lock object referenced by rwlock is not initialized, the results of calling this routine are undefined.
If a thread is interrupted (via a Tru64 UNIX signal or an OpenVMS AST) while waiting for a read-write lock for read access, upon return
from the interrupt routine the thread resumes waiting for the lock as if it had not been interrupted.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The lock for read access could not be acquired because the maximum number of read lock acquisitions for rwlock has
been exceeded. The current thread already owns the read-write lock for writing. The value specified by rwlock does not refer to an ini-
tialized read-write lock object.
ERRORS
None
RELATED INFORMATION
Functions: pthread_rwlock_init(3), pthread_rwlockattr_init(3), pthread_rwlock_tryrdlock(3), pthread_rwlock_wrlock(3),
pthread_rwlock_unlock(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_rwlock_rdlock(3)