[Swift-devel] Re: scheduler foo

Mihael Hategan hategan at mcs.anl.gov
Mon Jul 21 11:58:37 CDT 2008


On Mon, 2008-07-21 at 15:27 +0000, Ben Clifford wrote:
> 
> On Mon, 21 Jul 2008, Mihael Hategan wrote:
> 
> > > Secondly timer tasks are not killed, so a large number of timer tasks get 
> > > started up for overloaded sites.
> > 
> > Oh, I see. They are started multiple times for the same delay.
> 
> yes.
> 
> I fiddled a little with cancelling timers before launching the next to see 
> if it made the code better behaved. It does, though I'm still not 
> convinced that its right. Also to do that in the present layout needs some 
> kind of lookup table to figure out which timer to cancel which is 
> increased complexity.

Right. The better strategy would be to keep track of waiting hosts using
a O(1) op.

Let me poke around a bit today and tomorrow.

> 




More information about the Swift-devel mailing list