Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Question of throttling CPU usage |
| Date | 2012-04-26 11:45 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <4F996DA1.3020209@verizon.net> (permalink) |
| References | (4 earlier) <4543ab86-aafd-4500-94f3-0fd954c2de51@f5g2000vbt.googlegroups.com> <9vrclmFi68U11@mid.individual.net> <0c88c621-fe73-4530-beda-50b52b0c504f@l3g2000vbv.googlegroups.com> <pan.2012.04.26.13.33.31.515000@nowhere.com> <30980468.232.1335451461360.JavaMail.geo-discussion-forums@pbcrp8> |
On 04/26/2012 10:44 AM, Fred K wrote: > On Thursday, April 26, 2012 6:33:32 AM UTC-7, Nobody wrote: >> On Thu, 26 Apr 2012 01:41:06 -0700, jon.harding wrote: ... >>> 2. My program should run at a set CPU percentage and not exceed it. ... > Regardless of what you use to try slowing the program down, you probably can't cause it to use a specific amount of the CPU time. There are likely to be many other things running at the same time that you have no control over, and they will share CPU time with your progam. > > Suppose you specify your program to use 85% of the CPU time. Now run two instances of your program at the same time. Do you really expect each of them to use 85% of the CPU time? It's feasible to mandate that your program must use no more than X% of the CPU time, while allowing for the possibility of using less than X%. It's possible to interpret jon.harding's specification above as implying that: he emphasizes that CPU usage must "not exceed" the specified percentage.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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