[DGD] Rewriting the main loop
Felix A. Croes
felix at dworkin.nl
Thu Nov 29 12:23:43 CET 2018
Raymond Jennings <shentino at gmail.com> wrote:
> Could you elaborate please?
A simple continuation, where a task loops by starting itself with
a 0 second callout, could prevent swapout indefinitely.
Furthermore, your priorities are incorrect.
For LPC code to take advantage of the acceleration offered by Hydra,
tasks have to be broken up into subtasks which each affect only a few
objects. So a command received by a user will not be handled by a
single task, but by a multitude of small tasks, each of which starts
the next task with a callout. For each user command, there will be on
average N callouts.
That is not going to work when user input has higher priority than
callouts. It can prevent progress even when starvation of callouts
by user input is not total.
Regards,
Felix Croes
More information about the DGD
mailing list