Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28592 Discussions

CPU occuped a lot by executable application

flyhigher2009
Beginner
215 Views
Hi, everyone I have one question about the usage of CPU.

I used IVF to make a simple GUI and do the calculations. When I open the executable application,
the CPU usage is always 50%. When I run the application, the CPU usage will becomes 100% so that it will
becomes very slow when I run other applications. When the calculation is finished, the usage of CPU will become 50% again.


How can I make the CPU usage is low when I open the execuatble application and after the calculation is finished?

Thanks a lot.


Bisheng
0 Kudos
1 Reply
Steven_L_Intel1
Employee
215 Views
I think we'll need more information. If your application is doing lots of computation, it will, naturally, use a lot of CPU cycles.

Is this a QuickWin project? If so, so you have a loop at the end of the main program that just waits for termination? That loop is probably taking all the CPU. Add a:

CALL SLEEPQQ(200)

inside the loop - you may need to add a USE IFPORT at the top of the main program.
0 Kudos
Reply