Johannes Ponader wrote:
Forget previous post. Wikipedia made me smarter ;-)
I'd now just name it a scheduling problem: how will the main thread decide which
tasks to perform in which order, and how long to sleep between.
From simple to elegant (and from hacky to easily expandable/reframeable):
• You might hard-code it, as you already proposed,
• you might create a job list (including sleep-times) statically and let the bot loop
through it,
• or you might code a scheduling mechanism that creates the job list/job order
dynamically.
--
Johannes Ponader
0162/94 64 94 0
Slightly better than hardcoding the frequency as the number of function
calls, get a random number and map to the percentage of time that should
be given to each task.