4 ms·
While what you say is true, these are nonetheless kernel bugs. The kernel should never let any user process consume so many resources as to cause a system free
by adrian_b 4y ago
While what you say is true, these are nonetheless kernel bugs.
The kernel should never let any user process consume so many resources as to cause a system freeze.
The kernel must not only be able to preempt any user process at any time, stopping it to consume all CPU time, but it must also prevent any user process to completely fill a SSD or HDD, because that can prevent many programs from starting.
- throwawaaarrgh 4y agoPreemptibility is an optional kernel design feature. Not all kernels have it and not in all ways. If it's intentionally designed that way it's not a bug. No kernel stops users from filling up disks (though some filesystems have such limits as features, which most of us turn off) Pretty much the only kernels that are totally preemptible are RTOS and they still don't stop you from shooting yourself in the foot.
- astrange 4y agoA computer's job is to do whatever you ask it to do; that includes using all disk or memory up, if that's what you really want. There's not really a way to prevent breaking the OS (or just using up the battery) without preventing you from using all the computer you bought. A phone is different since it always has to be able to make phone calls.