Manfred, thank you for reply.
But I speak about different thing. I want to save power when application is running. I have application tasks which is using some calculation power, and now the rest is used by GUI. For example if I use 1% of CPU then 99% will be used by GUI. And most of the time GUI is doing nothing but running while loop, checking flags and so on, doing it on a very high speed... This is not good, this is stupid... What is proposed in your advice could not be used, even parts of it, this is very inconvinient. GUI must know how much CPU power it is needed and give the rest to other tasks (or to OS).
Btw you may notice that your PC's fan is running with different speed, depending on calculation load. But your PC is ON, and still power saving works. I is not working in while (1) loop. That what I am talking about.