All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Possible spin-problem in nanosleep()
Date: Thu, 23 Jun 2005 17:39:13 -0600	[thread overview]
Message-ID: <42BB4821.8040308@shaw.ca> (raw)
In-Reply-To: <4iz0p-5fH-7@gated-at.bofh.it>

Richard B. Johnson wrote:
> Is this a known problem? Is it going to be fixed? In a possibly
> related note, the following:
> 
> main()
> {
>     for(;;)
>         sched_yield();
> }
> 
> .... is shown to be spinning, by 'top' not sleeping. This, even though
> it is giving up its quantum continuously.

If no other processes are runnable, this will still use 100% of the CPU.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


       reply	other threads:[~2005-06-23 23:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4iz0p-5fH-7@gated-at.bofh.it>
2005-06-23 23:39 ` Robert Hancock [this message]
2005-06-23 12:18 Possible spin-problem in nanosleep() Richard B. Johnson
2005-06-23 12:33 ` Andreas Schwab
2005-06-23 12:46   ` Richard B. Johnson
2005-06-23 15:09     ` Richard B. Johnson
2005-06-23 21:42       ` Alan Cox
2005-06-24 11:42         ` Richard B. Johnson
2005-06-26 17:18           ` Alan Cox
2005-06-26 18:14             ` Mike Galbraith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42BB4821.8040308@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.