Re: High CPU consumption

| Index | Champ Home Page |

Posted by Hans Salvisberg on 2007-01-09 08:47 CET
(In reply to: High CPU consumption posted by Aegidius on 2007-01-08 13:54 CET)

Hi Aegidius,

With CP::yield() you will always give up your time slice immediately, and any other thread waiting to run will be able to proceed. This means that even though your test program is sucking up all *idle* time, any other concurrent applications will get as much CPU time as they want.

I would expect CPTimer::delay(10) to behave even better, but try CPTimer::delay(100) -- that should definitely make your Champ application go idle, without causing any noticeable loss of responsiveness.

Try Process Explorer from www.sysinternals.com and enable the CPU History column to see what is running and how much CPU time it's getting/taking.

Let me know what you find...

Hans


Current thread:
High CPU consumption Aegidius 2007-01-08 13:54 CET
Re: High CPU consumption Hans Salvisberg 2007-01-09 08:47 CET
Re: High CPU consumption Aegidius 2007-01-15 21:41 CET
Re: High CPU consumption Hans Salvisberg 2007-01-15 23:46 CET
Re: High CPU consumption Aegidius 2007-01-16 10:42 CET
Re: High CPU consumption Hans Salvisberg 2007-01-16 14:24 CET
Greetings! Nicksasa 2010-02-26 00:35 CET
Web hosting question Liertriarse 2010-03-03 20:21 CET
As seen on Oprah, $6 fast cash for those strugglin StoftoretShew 2010-03-29 03:20 CET
Auto question... edgentienNure 2010-04-11 16:40 CET
looking for the best project of city house 2010 Architekta 2010-05-31 05:59 CET
Are Moderator Here? checkmoderator 2010-06-06 14:56 CET
Are Admin Here? checkdmin 2010-06-12 13:18 CET
Hello Friends!! haiseefat 2010-07-05 21:20 CET
How i just got my free IPhone 4g! SBIGGY 2010-07-24 03:20 CET
Any person have some high quality business card on businesscardonlineki 2010-07-29 04:30 CET
Buy Xenical guttadutt 2010-08-26 03:19 CET
Leder du efter et sted at offentliggøre mine artik GrooRiezete 2010-02-22 13:13 CET

Use this form to post a followup.
Name:
Email: (optional, hidden, replies will be forwarded to this address)
Subject:   (no text)

Message:

Optional Link (uses rel="nofollow" attribute to avoid attracting spammers)
Apparently, the forum spammers don't know what rel="nofollow" does, and because
they continue to feed their trash into the forum, we have to disable the Link feature.
Please do not post any link, or your post will be deleted automatically.
We're sorry for having to take that measure.
URL:
Title:

   



| Index | Champ Home Page |

Copyright © 2010 Salvisberg Software & Consulting. All rights reserved.
Top