Visit Our UNIX and Linux User Community


thread::signal


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting thread::signal
# 1  
Old 09-03-2002
Data thread::signal

Hi,all!
Now ,I write perl for windows platform,and will use signal for asynchronous operations ,but I find it could bring some bugs if it is used incorrectly ,pls help!!! Smilie
# 2  
Old 09-03-2002
Error more for it

source code list:
#---------------------------------------------------------------------------
use Thread::Signal;

mkdir( "lockdir", 0755 );
$SIG{INT} = $SIG{QUIT} =
$SIG{PIPE} = $SIG{TERM} = $SIG{KILL}= \&unlock;
sub unlock
{
rmdir( $lockdir );
}
kill( 'INT', $$ );
...
#----------------------------------------------------------------------------
but it occurs complilation error,such as:
This perl was built for "ithreads", which currently does not support Thread.pm.
Run "perldoc Thread" for more information at D:/Perl/lib/Thread.pm line 216.

how could i do?Smilie

Previous Thread | Next Thread
Test Your Knowledge in Computers #757
Difficulty: Medium
The MOSFET is the least common semiconductor device in digital and analog circuits.
True or False?

4 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Not able to post thread/reply to thread

Dear Moderator I am not able to post any new thread or post reply to mine old thread. Kindly help as i am stuck on one problem and needed suggestion. Regards Jaydeep (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies

2. Programming

Parent Thread Of Child Thread

Parent Thread Of Child Thread Suppose a process creates some threads say threadC and threadD. Later on each of these threads create new child threads say threadC1, threadC2, threadC3 etc. So a tree of threads will get created. Is there any way to find out the parent thread of one such... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

3. Shell Programming and Scripting

How to send SIGNAL to the thread?

Hello, I have to send SIGSEGV to the thread. What is the simplest and efficient way to do that? (6 Replies)
Discussion started by: Rahulpict
6 Replies

4. Programming

How to cancel a thread safely from the initial thread?

how about asynchronous canceling? or with signal? if with signal whether it effects the process? my english so badly :( :( (1 Reply)
Discussion started by: alan.zhao
1 Replies

Featured Tech Videos