[Stackless] Population simulation in Stackless
Aaron Watters
aaron at reportlab.com
Fri Aug 23 20:30:42 CEST 2002
Aaron Watters wrote:
> I went ahead and added a modified version of
> http://www.xs4all.nl/~bsarempt/python/worldsim.html
at location: ftp://ftp.reportlab.com/tmp/stackless_experiments.zip
>
> updated for aug 2002 stackless and with qt dependancies removed.
> I think I didn't change the semantics (?).
>
> It was easy, but immediately pointed out problems with my "real time
> scheduler". Here is the section of notes.txt that talks about it:
>
> """
> The "real time scheduler" doesn't work as well as it should.
> I think the problem is that
>
> task.run()
>
> doesn't do what I expected -- I thought that when the task
> blocked control would return to the task that called "run",
> but it doesn't -- it goes to some other task. I think this
> is wrong. schedule() can pick any task but run() should return
> to the task that that invoked "run". ymmv.
>
> As it is the "scheduling task" is not guaranteed to get invoked
> before a low priority task runs instead of a higher one, so
> real time priorities don't necessary get observed.
> """
>
> -- Aaron Watters
>
> Simon Frost wrote:
>
>> Dear Stackless list,
>>
>> Has anyone played with Boudewijn Rempt's population simulation,
>> http://www.xs4all.nl/~bsarempt/python/worldsim.html , (which used the
>> old Stackless) in the new Stackless? I'd like to do something
>> similar, with individuals being modelled as threads...
>>
>> Thanks!
>> Simon
>
ps: sometimes two mistakes are better than one. I forgot the location
in the first message
and also forgot to copy the stackless list, thus accidentally wasting
less bandwidth.
_______________________________________________
Stackless mailing list
Stackless at www.tismer.com
http://www.tismer.com/mailman/listinfo/stackless
More information about the Stackless
mailing list