On Sat, Oct 14, 2023 at 4:41 AM Cedric Blancher via Cygwin
<cygwin@cygwin.com> wrote:
> Is there anything in /proc which can tell me the current *Windows*
> scheduler priority level? Or a command line tool?

'pslist' from Sysinternals (owned by MS) will tell you the Windows priority.

<https://learn.microsoft.com/en-ca/sysinternals/downloads/pslist>

As for mapping Cygwin priorities to Windows, I ran a test using
'renice' to change the priority of a job and found the follosing
non-linear mapping:
Cygwin priority   1-3 is Windows priority 8
Cygwin priority  4-11 is Windows priority 6
Cygwin priority 12-19 is Windows priority 4

I only tested priorities 1 to 19.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to