more G-Labs products

Author Topic: Test result of .execute() ?  (Read 5156 times)

February 19, 2015, 06:30:56 AM
Reply #15

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
I think you don't need runasynctask or either put a reasonable pause inside the loop.
is there any reason you're using runasynctask?
It was just a try (a bad one;)) to reduce the usage of cpu, but with or without "runasynctask" the cpu is around 100%.  :(

Code: [Select]
parameter.WaitUpdatealready do a "pause" but i try to add one to test, but no more chance.

February 19, 2015, 05:15:21 PM
Reply #16

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
How do you monitor cpu usage?  I've used "top" but not sure if there's something better that's already included.  I haven't reviewed utilization, but it would probably be worth checking out to make sure my codes don't cause issues.

February 19, 2015, 06:00:00 PM
Reply #17

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
"top" is a good way. And i use the following program to have an history : http://www.homegenie.it/forum/index.php?topic=76.msg317#msg317

March 10, 2015, 10:49:00 PM
Reply #18

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Hi,
@Gene, do you think there is a way to do without "charging" so much the cpu ?
Bye