We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
available_parallelism
ulimit
1 parent f63685d commit 41199f3Copy full SHA for 41199f3
library/std/src/thread/mod.rs
@@ -2012,6 +2012,9 @@ fn _assert_sync_and_send() {
2012
/// which may take time on systems with large numbers of mountpoints.
2013
/// (This does not apply to cgroup v2, or to processes not in a
2014
/// cgroup.)
2015
+/// - It does not attempt to take `ulimit` into account. If there is a limit set on the number of
2016
+/// threads, `available_parallelism` cannot know how much of that limit a Rust program should
2017
+/// take, or know in a reliable and race-free way how much of that limit is already taken.
2018
///
2019
/// On all targets:
2020
/// - It may overcount the amount of parallelism available when running in a VM
0 commit comments