Some help for Loop's
-
Hi I need some help for the follwoing state. when i use for(....) statement the CPU prformance becomes 100% when i use Sleep(..) function the program performance becomes more slower. i need some techinques for using loop with large rang with minmal CPU performance . plesea some help. thanx alot BY. On Earth nothing impossible, while your mind running. Faroqtam
-
Hi I need some help for the follwoing state. when i use for(....) statement the CPU prformance becomes 100% when i use Sleep(..) function the program performance becomes more slower. i need some techinques for using loop with large rang with minmal CPU performance . plesea some help. thanx alot BY. On Earth nothing impossible, while your mind running. Faroqtam
If you are processing a lot of data, Sleep is about your only choice. You must chose between fast data processing and program performace. It is all a balancing act; a single CPU can only do so much and every but wants a slice of its time. The best you can do is to run profiling to see where the bottle necks are (slow code) and optimize those functions that are taking to long to do there job. Good Luck! INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen
-
Hi I need some help for the follwoing state. when i use for(....) statement the CPU prformance becomes 100% when i use Sleep(..) function the program performance becomes more slower. i need some techinques for using loop with large rang with minmal CPU performance . plesea some help. thanx alot BY. On Earth nothing impossible, while your mind running. Faroqtam
What exacly you want to do ? why would you want to use Sleep ? it will stop the loop from looping ( and suspend the application ). If the software loops, and is taking 100% of the CPU, it is because the OS decided that nothing else important needs the CPU; I'm not sure what you mean by "minmal CPU performance" ? even a low priority process will be put to work when nothing else happens.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
Hi I need some help for the follwoing state. when i use for(....) statement the CPU prformance becomes 100% when i use Sleep(..) function the program performance becomes more slower. i need some techinques for using loop with large rang with minmal CPU performance . plesea some help. thanx alot BY. On Earth nothing impossible, while your mind running. Faroqtam
-
Hi I need some help for the follwoing state. when i use for(....) statement the CPU prformance becomes 100% when i use Sleep(..) function the program performance becomes more slower. i need some techinques for using loop with large rang with minmal CPU performance . plesea some help. thanx alot BY. On Earth nothing impossible, while your mind running. Faroqtam
;)well if the processing that u want to is not that important ,give ur code in the OnIdle() function..... maybe that could help.....:~
-
Hi I need some help for the follwoing state. when i use for(....) statement the CPU prformance becomes 100% when i use Sleep(..) function the program performance becomes more slower. i need some techinques for using loop with large rang with minmal CPU performance . plesea some help. thanx alot BY. On Earth nothing impossible, while your mind running. Faroqtam
set a timer to perform your task at a time interval without using CPU when your program's not running (active loops are bad for that).
TOXCCT >>> GEII power
[VisualCalc] -