in reply to Perl TK threads using while
First of all, I did not closely read your code. But I did pick up on the word, “thread.” You do not need, say, “21 threads” to do this ... or even two. You simply need a timer, along with a way of tracking the status of each of those 21 accounts as of the last time the timer ran. On each timer-pop, the (main) program, or as the case may be a single background thread that does nothing else, does whatever it needs to do for everyone in turn.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl TK threads using while
by zentara (Cardinal) on Feb 06, 2012 at 17:11 UTC | |
by vinothjaguva (Novice) on Feb 07, 2012 at 09:22 UTC | |
by zentara (Cardinal) on Feb 07, 2012 at 10:26 UTC |