4 ms·
I'd love to understand more about what the ".verynice()" call does. Source is here: https://github.com/jart/cosmopolitan/blob/f10845ab9f847e4cadbee93520f17e1661
by maxmcd 3y ago
I'd love to understand more about what the ".verynice()" call does. Source is here: https://github.com/jart/cosmopolitan/blob/f10845ab9f847e4cadbee93520f17e1661845f50/libc/calls/verynice.c#L26-L40 https://github.com/jart/cosmopolitan/blob/f10845ab9f847e4cad...
What are the effects of limiting a process priority?
- anamexis 3y agoThe wikipedia article for nice is a decent summary: https://en.wikipedia.org/wiki/Nice_(Unix) https://en.wikipedia.org/wiki/Nice_(Unix)
- jart 3y agoThe `nice` command alone (a.k.a. setpriority) doesn't do much. The verynice() function is similar to saying: #!/bin/sh exec ionice -c3 nice "$@" Since it uses SCHED_IDLE i/o priority too. It's intended to ensure that no matter how much you bog down the system with i/o and cpu usage, my Emacs session and login shells will remain interactive and in control.