linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sleep(3) manpage
@ 2009-12-10 17:50 Petre Mierlutiu
       [not found] ` <9C1C3093-079B-4125-8621-56628C4A963B-zTtBy73WAK9hl2p70BpVqQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Petre Mierlutiu @ 2009-12-10 17:50 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello,

the sleep(3) manpage states, under DESCRIPTION, that "sleep()  makes  the  calling  process sleep [...]". I believe this not to be true and the appropriate text would be: "sleep() makes the calling thread sleep [...]".

 I think in the past Linux did implement it so it would block the process, I am not sure.
Anyway, sleep is currently implemented using nanosleep() and a simple threaded program can be written to prove sleep only sleeps the calling thread.

Manpages version: 3.21
Distribution: ubuntu 9.10

Kind regards,

Petre Mierlutiu--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-03  6:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-10 17:50 sleep(3) manpage Petre Mierlutiu
     [not found] ` <9C1C3093-079B-4125-8621-56628C4A963B-zTtBy73WAK9hl2p70BpVqQ@public.gmane.org>
2010-01-21  6:40   ` Subject: [PATCH] sleep.3: sleep suspends the thread, not the process. (Re: sleep(3) manpage) bill o gallmeister
     [not found]     ` <4B57F6F0.8010904-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-03  6:01       ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).