gants has asked for the wisdom of the Perl Monks concerning the following question:
in another words I need wait if some timer of those $thing and $index until 1000 and do than non-blocked, because if I would do this by blocked way it must be ugly and idea with queues brought a fiasco. in conclude my aim is to do queuing matched patterns coming from flow of the data in one thread.my $priority; again: $priority->{$thing}->{$index}->{timer} = $timer; # $time are external +value #and then check this out... if($priority->{$thing}->{$index}->{timer} < 1000){ #enqueued by wait and then again check accepted new external value $priority->{$thing}->{$index}->{wait} = $priority->{$thing}->{$index}- +>{wait} + 100; ... goto again; # how this make not blocked? }else{ do_smth(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: scheduling prioriting
by moritz (Cardinal) on Oct 28, 2009 at 11:22 UTC | |
|
Re: scheduling prioriting
by gmargo (Hermit) on Oct 28, 2009 at 13:26 UTC | |
by gants (Novice) on Oct 28, 2009 at 14:24 UTC |