develooper Front page | perl.ithreads | Postings from September 2010

Killing a thread

Thread Previous | Thread Next
From:
dannwong
Date:
September 29, 2010 02:20
Subject:
Killing a thread
Message ID:
D59C59453D0EDC43832490B6DADFAECF01F5E8A7@XMB-RCD-214.cisco.com
Hi Perl Thread GURUS,
	Here is my situation. I started, say 10 threads, executing some
command, 1 or 2 of them is hanging for over 2 hours. I want to put in
some logic that if the thread run time passes an hour threshold kill
that thread or return and fail the thread. Any ideas on how I can
accomplish this task? Thanks.

Sincerely yours,
Danny H. Wong



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About