06-26-2024, 06:20 PM
I wouldn't program an infinite loop without a program.delay().
One of my first experiences with Small Basic was that this simple programming language, which also comes from Microsoft and was intended for children, slowed down the Windows XP operating system (50% CPU load). On weak hardware, that's the end.
With WIN 7, the code example generates a CPU load of 8%!! With Program.delay(1) it is 0%.
If the operating system briefly gains control of the program, it saves CPU load and energy.
I mean, WINDOWS doesn't achieve an accuracy of < 10ms with the overkill of events and processes.
It is not a real-time operating system.
One of my first experiences with Small Basic was that this simple programming language, which also comes from Microsoft and was intended for children, slowed down the Windows XP operating system (50% CPU load). On weak hardware, that's the end.

With WIN 7, the code example generates a CPU load of 8%!! With Program.delay(1) it is 0%.
If the operating system briefly gains control of the program, it saves CPU load and energy.

I mean, WINDOWS doesn't achieve an accuracy of < 10ms with the overkill of events and processes.
It is not a real-time operating system.