Open
Description
Currently, the Windows implementation of std::thread::available_parallelism
just returns the number of CPUs on the system:
rust/library/std/src/sys/pal/windows/thread.rs
Lines 126 to 136 in e3fccdd
This is in stark contrast to the Linux implementation, which not only checks process affinity, but also queries cgroup information. It'd be better if the Windows implementation also respected process affinity and job object limitations.