Closed obj-obj closed 1 year ago
Hi. Thanks, and sorry for the late review. Which platform did you run this on? Is this priority reliably inherited by processes spawned later on the same thread?
Hi. Thanks, and sorry for the late review. Which platform did you run this on? Is this priority reliably inherited by processes spawned later on the same thread?
Tested on Linux, priority was inherited on the stockfish processes. Not sure about Windows/Macos, but I'd imagine it works the same (unless priority isn't inherited for some reason).
Ok, cool. I added an optional --cpu-priority unchanged
flag (f99905f1fab643d01297bb26a53a44127db33405), just in case someone needs the old behavior, or prefers setting the priority with nice(1)
or via systemd.
Fixes #251
I also ran
cargo update
during this PR, I can remove the changes toCargo.lock
if it's a problem