
Energy
fnuecke opened this issue ยท 4 comments
Make computers use energy.
Give devices the ability to declare how much power they draw. Maybe do this in the provider, to make it clear this must be a constant value. VM then sums up the costs and consumes that per tick.
When energy runs out, VM will power off directly.
Not sure what you mean by "safely", but the intent is to have it power off directly, as if pulling the plug.
K, Maybe there could be a battery component so the user can program the pc to send exit signals to all running programs and then shuts down the computer safely.