Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #19959

Re: Question of throttling CPU usage

From Nobody <nobody@nowhere.com>
Subject Re: Question of throttling CPU usage
Date 2012-04-26 14:27 +0100
Message-Id <pan.2012.04.26.13.27.18.157000@nowhere.com>
Newsgroups comp.lang.c
References <6e2a5c39-7a60-4ce1-a609-4211213782bc@er9g2000vbb.googlegroups.com> <4F984620.8000006@verizon.net> <4384689a-5010-4a41-94eb-a747dad00f6d@j3g2000vba.googlegroups.com> <4F9857B3.3080402@verizon.net>
Organization Zen Internet

Show all headers | View raw


On Wed, 25 Apr 2012 15:59:47 -0400, James Kuyper wrote:

> The tricky part of that is "do nothing". The C standard doesn't provide
> any mechanism for doing that; you'll have to find  a method specific to
> your operating system for doing it. That's what sleep() is for;
> presumably there's a Windows equivalent - it might even be called
> sleep(), for all I know.

Actually, it's called Sleep() (with an upper-case S); the argument is in
milliseconds (as opposed to seconds for the Unix version).

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Question of throttling CPU usage jon.harding@gmx.co.uk - 2012-04-25 11:22 -0700
  Re: Question of throttling CPU usage James Kuyper <jameskuyper@verizon.net> - 2012-04-25 14:44 -0400
    Re: Question of throttling CPU usage jon.harding@gmx.co.uk - 2012-04-25 12:35 -0700
      Re: Question of throttling CPU usage Thomas Richter <thor@math.tu-berlin.de> - 2012-04-25 21:39 +0200
      Re: Question of throttling CPU usage James Kuyper <jameskuyper@verizon.net> - 2012-04-25 15:59 -0400
        Re: Question of throttling CPU usage jon.harding@gmx.co.uk - 2012-04-25 15:33 -0700
          Re: Question of throttling CPU usage Ian Collins <ian-news@hotmail.com> - 2012-04-26 10:37 +1200
            Re: Question of throttling CPU usage jon.harding@gmx.co.uk - 2012-04-26 01:41 -0700
              Re: Question of throttling CPU usage Robert Wessel <robertwessel2@yahoo.com> - 2012-04-26 04:25 -0500
              Re: Question of throttling CPU usage James Kuyper <jameskuyper@verizon.net> - 2012-04-26 06:59 -0400
                Re: Question of throttling CPU usage Robert Miles <milesrf@Usenet-News.net> - 2012-05-27 23:35 -0500
              Re: Question of throttling CPU usage Nobody <nobody@nowhere.com> - 2012-04-26 14:33 +0100
                Re: Question of throttling CPU usage Fred K <fred.l.kleinschmidt@gmail.com> - 2012-04-26 07:44 -0700
                Re: Question of throttling CPU usage James Kuyper <jameskuyper@verizon.net> - 2012-04-26 11:45 -0400
        Re: Question of throttling CPU usage Nobody <nobody@nowhere.com> - 2012-04-26 14:27 +0100
      Re: Question of throttling CPU usage tom st denis <tom@iahu.ca> - 2012-04-26 12:01 -0700
      Re: Question of throttling CPU usage Robert Miles <milesrf@Usenet-News.net> - 2012-05-27 23:19 -0500
    Re: Question of throttling CPU usage Lanarcam <lanarcam1@yahoo.fr> - 2012-04-25 21:39 +0200

csiph-web