05-02-2011
Question (pthread): How to Signal all threads w/o "broadcast"?
Hello all,
Is there any way that I can signal (wake) all threads that I have created without using pthread_cond_broadcast?
Cheers!
Aaron
8 More Discussions You Might Find Interesting
1. Linux
Dear Srs,
I'm getting this error on a Linux box, running Apache 2.0.52:
"host: isc_taskmgr_create: no available threads"
Making some search for those strings in Google, didn't tell me anything about this.. appears to be related to SELinux, but it's disabled in the box.
Any idea about... (0 Replies)
Discussion started by: Santi
0 Replies
2. UNIX and Linux Applications
hi,
I have
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or question of my own) is:
Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies
3. UNIX for Advanced & Expert Users
hi,
I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses...
Here is the configuration of my system:
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or... (1 Reply)
Discussion started by: talipk
1 Replies
4. Solaris
Rebuilding a server (T2000) from a flash archive I created on another server. Using a Solaris 10/08 DVD to boot from the was going to point it tot he flash archive and pull it over NFS. I've done this many times with success until now.
It initially boots off the DVD, you input the... (5 Replies)
Discussion started by: Probos
5 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Solaris
Well, my first post... thanks in advance! Can applications be notified of the X Window close (with "X" button) so the signal handler can run a cleanup process method?
About the app: built with GNU C/C++ on Solaris 10, with WxWidgets. It is launched by a shell script as a background task. The... (2 Replies)
Discussion started by: HandsOGold
2 Replies
7. Solaris
I get an error after the initializing screen. I am using a DVD/ROM to boot up the installation on a Dell Inspiron 1520. Segmentation fault - core dumped. I have tried to restart multiple times. Please help (1 Reply)
Discussion started by: Jimasaurus
1 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
coro::signal
Signal(3pm) User Contributed Perl Documentation Signal(3pm)
NAME
Coro::Signal - thread signals (binary semaphores)
SYNOPSIS
use Coro;
$sig = new Coro::Signal;
$sig->wait; # wait for signal
# ... some other "thread"
$sig->send;
DESCRIPTION
This module implements signals/binary semaphores/condition variables (basically all the same thing). You can wait for a signal to occur or
send it, in which case it will wake up one waiter, or it can be broadcast, waking up all waiters.
It is recommended not to mix "send" and "broadcast" calls on the same "Coro::Signal" - it should work as documented, but it can easily
confuse you :->
You don't have to load "Coro::Signal" manually, it will be loaded automatically when you "use Coro" and call the "new" constructor.
$sig = new Coro::Signal;
Create a new signal.
$sig->wait
Wait for the signal to occur (via either "send" or "broadcast"). Returns immediately if the signal has been sent before.
$sem->wait ($callback)
If you pass a callback argument to "wait", it will not wait, but immediately return. The callback will be called under the same
conditions as "wait" without arguments would continue the thrad.
The callback might wake up any number of threads, but is NOT allowed to block (switch to other threads).
$sig->send
Send the signal, waking up one waiting process or remember the signal if no process is waiting.
$sig->broadcast
Send the signal, waking up all waiting process. If no process is waiting the signal is lost.
$sig->awaited
Return true when the signal is being awaited by some process.
AUTHOR
Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/
perl v5.14.2 2012-04-13 Signal(3pm)