diff options
author | grog <grog@FreeBSD.org> | 2007-02-27 02:51:41 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2007-02-27 02:51:41 +0000 |
commit | 502eb2ec0e1f3a8e4b78b14ccfaad6822c33bbb6 (patch) | |
tree | 6fec11503e26fb42d925ff1511a5388f410e6493 /share/man | |
parent | 2620bd06dafc20822c133be0bfde981dbb508814 (diff) | |
download | FreeBSD-src-502eb2ec0e1f3a8e4b78b14ccfaad6822c33bbb6.zip FreeBSD-src-502eb2ec0e1f3a8e4b78b14ccfaad6822c33bbb6.tar.gz |
Add warning about deadlocks created by use of wakeup_one.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/sleep.9 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/man/man9/sleep.9 b/share/man/man9/sleep.9 index 0973fc5..5bfa970 100644 --- a/share/man/man9/sleep.9 +++ b/share/man/man9/sleep.9 @@ -97,6 +97,12 @@ when a large number of threads are sleeping on the same address, but only one of them can actually do any useful work when made runnable. .Pp +.Fn wakeup_one +does not work reliably if more than one process is sleeping on the same address; +in this case it is possible for an unrelated process to be woken. +This process will ignore the wakeup, and the correct process will never be +woken. +.Pp The .Fn msleep function is the general sleep call. |