Daniel Rychlik wrote:
> Guys,
>
>
> I have read this email about 3 times now and I have closely examined the
> thoughts by you both... I still have the issue of timing out threads if
> they don't respond... If I can use eval in my code and timeout on
> SIG{ALRM} What options do I have going forward?
1) Don't use threads.
2) If you use threads, and you're not doing blocking IO, you could have the
main thread do any timing and set a shared vrbl for each thread to check
or do the time checking in each thread.
By this time, I've forgotten what you are actually trying to do.
> Someone said, using a "thread polling" mechanism, but I don't have any
> idea how to code that through out this beast... Its just easier for me
> to use alarms...
Like I said - there basically are no alarms on Windoze.
> How would you guys do it? Im asking the masters here, and I know you
> have a few tricks up your sleeves...
How about a synopsis of the code again - what are you trying to do and
what mechanisms are you using and what are you locked into ?
Maybe some pseudo-code would help.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs