I was kind of expecting this crate on UNIX to call nice(2) in order to mark the thread as lower priority, but it doesn't. At least on Linux so far it seems I'm able to set the thread policy to Batch and that worked successfully, but Linux doesn't seem to do anything at all with the priority value; that's more for the realtime/deadline schedulers.
Am I looking for the wrong thing? I ended up just calling libc::nice() in my application.
I was kind of expecting this crate on UNIX to call
nice(2)in order to mark the thread as lower priority, but it doesn't. At least on Linux so far it seems I'm able to set the thread policy to Batch and that worked successfully, but Linux doesn't seem to do anything at all with the priority value; that's more for the realtime/deadline schedulers.Am I looking for the wrong thing? I ended up just calling
libc::nice()in my application.