I've installed Perl 5.8, and had it compile with iThread support. However I can't figure out how to use it, despite reading the perldoc a few dozen times, it doesn't make sense to me. What I want to do, is to have 2 threads, 1 thread will contain my program which mustn't be disturbed, and the other thread will execute a sub to check over and over again to see if certain items have timed out.
$thread = threads->create("service"); # this is the main program. "service" starts it up. $newthr = threads->create("checktimeout"); # this starts the timeout sub sub checktimeout { while (1) { # i can't think of another way to loop the sub.. # here i check to see if an item has timed out, if so, expire it. # also here, the process needs to pause for 5 seconds and then check again } } now the service sub executes fine, but checktimeout doesn't even execute (i've checked this in debug mode). any clues as to what's going wrong and why? Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]