10 More Discussions You Might Find Interesting
1. SuSE
I have this error message from the logs of Zimbra email running on SUSE 11.2
Is the thread maximum of 20 an operating system parameter, or is it part of the application code, or part of the java run time?
Part two, how would I increase that number? (3 Replies)
Discussion started by: jgt
3 Replies
2. Programming
Hello all,
Is there any way that I can signal (wake) all threads that I have created without using pthread_cond_broadcast?
Cheers!
Aaron (6 Replies)
Discussion started by: mobility
6 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to write a script to decompress a directory full of files. The decompression commands can run in the background, so that many can run at once. But I want to limit the number running at any one time, so that I don't overload the machine.
Something like this:
n=0
for i in *.gz... (15 Replies)
Discussion started by: p.f.moore
15 Replies
4. Programming
Hello,
I have got some issue with the struct variable with passed arguments
the variable in the sturct is only recognize the last value their assigned to
I'm pretty confused why the mutex didn't work out
here is my program:
#include<stdio.h>
#include<pthread.h>
pthread_mutex_t lock... (3 Replies)
Discussion started by: michael23
3 Replies
5. Solaris
I am running Apache:
# httpd -version
Server version: Apache/1.3.26 (Unix)
Server built: Jul 15 2002 03:27:01
On a V280:
# uname -a
SunOS bsmweb01 5.8 Generic_108528-23 sun4u sparc SUNW,Sun-Fire-280R
#
I am assessing the server for additional applications. I ran vmstat 10 and a... (9 Replies)
Discussion started by: jabberwocky
9 Replies
6. Solaris
Is there any command to find
1) the number of threads running
2) kernel boot mode
in solaris box (2 Replies)
Discussion started by: vickylife
2 Replies
7. HP-UX
Hi,
I have a process which creates pthreads to generate some reports. After creating the reports these threads return null. But after 1024 threads, the process is not able to create any threads further.,and at max 5 threads are existing simultaneously and are returning the control back after... (2 Replies)
Discussion started by: Krsh
2 Replies
8. Solaris
Hi,
Anybody knows the maximum number of threads suuported by a process in solaris os. Please reply
Thanks in advance :( (1 Reply)
Discussion started by: Agnello
1 Replies
9. Programming
I am trying to find out that how many number of threads are currently running or in any other state which is created by POSIX standard in a process.
First I have defined a variable called proc_var of type proc defined in sys/proc.h.Next I open up the dir /proc and per directory wise I do an ioctl... (7 Replies)
Discussion started by: S.P.Prasad
7 Replies
10. Programming
Hi all,
I am working in a UNIX/C environment. I would like to understand more about MUTEX and Threads. Can someone explain me these
concepts and how they are related.
Vijay (2 Replies)
Discussion started by: vthasan
2 Replies
pthread_rwlock_unlock(3C) pthread_rwlock_unlock(3C)
NAME
pthread_rwlock_unlock - unlock read-write lock object
SYNOPSIS
cc -mt [ flag... ] file... -lpthread [ library... ]
#include <pthread.h>
int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);
The pthread_rwlock_unlock() function is called to release a lock held on the read-write lock object referenced by rwlock. Results are unde-
fined if the read-write lock rwlock is not held by the calling thread.
If this function is called to release a read lock from the read-write lock object and there are other read locks currently held on this
read-write lock object, the read-write lock object remains in the read locked state. If this function releases the calling thread's last
read lock on this read-write lock object, then the calling thread is no longer one of the owners of the object. If this function releases
the last read lock for this read-write lock object, the read-write lock object will be put in the unlocked state with no owners.
If this function is called to release a write lock for this read-write lock object, the read-write lock object will be put in the unlocked
state with no owners.
If the call to the pthread_rwlock_unlock() function results in the read-write lock object becoming unlocked and there are multiple threads
waiting to acquire the read-write lock object for writing, the scheduling policy is used to determine which thread acquires the read-write
lock object for writing. If there are multiple threads waiting to acquire the read-write lock object for reading, the scheduling policy is
used to determine the order in which the waiting threads acquire the read-write lock object for reading. If there are multiple threads
blocked on rwlock for both read locks and write locks, it is unspecified whether the readers acquire the lock first or whether a writer
acquires the lock first.
Results are undefined if any of these functions are called with an uninitialized read-write lock.
If successful, the pthread_rwlock_unlock() function returns 0. Otherwise, an error number is returned to indicate the error.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
pthread_rwlock_init(3C), pthread_rwlock_rdlock(3C), pthread_rwlock_wrlock(3C), pthread_rwlockattr_init(3C), attributes(5), standards(5)
23 Mar 2005 pthread_rwlock_unlock(3C)