|
|
|
|
|
by pitust2
1025 days ago
|
|
> Or maybe I'm all wrong. I'm not an OS dev, so please someone correct me. Nope, you are completl right! A while (true) might slow down the system, but even that is not necessarily the case: I wrote a program to test this (based on the pseudocode in the readme) and my system is totally usable, with basically zero lag! This is the power of a well-written operating system that includes a mysterious concept called priorities. There is actually no discernable different when running the program (other than battery use and temperature going up). In fact, I am running that program as I right this because the difference is so negligable. program: https://paste.sr.ht/~pitust/47dc80ff09243b4bf41a08ae9434a32c... > In terms of security, this would make denial of service attacks against such systems trivial Denial of service attacks where you have access to the target system are not super hard to mount AFAIK. |
|
Not because it isn't a resource disaster. But because unless you measure something, you might not notice.
Oh! You did measure something. Battery use and temp. There you go. It's a disaster. Some kind of management of such irresponsible threads is definitely a good idea.