in reply to Re^4: Splitting one large timeout into few smaller ones..
in thread Splitting one large timeout into few smaller ones..
A clearer description of the "tasks" in question, the communications requirements etc. would make it easier to make suggestions.
Threads would be in randomly failing department, additionally there are way to many flavors, each with it's own set of problems, advantages and disadvantages.
If we're talking Perl, there are only two flavours and only one of them is worth considering.
It's not hard to arrange for threads to operate cooperatively--it's quite simple actually--but, in common with all forms of cooperative multitasking, you need to embed yeild points within the loops. If you are able to do this, then you could equally embed return unless $timeleft; at those same points and bottle out when the time has expired and move onto the next task.
You seem to be hooked on telling us how Perl cannot help you, rather than helping us tell you how it could.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Splitting one large timeout into few smaller ones..
by Eyck (Priest) on Apr 07, 2005 at 19:51 UTC |