Hi Jimmy,
Please tell me, what is a function POT2DEC() in your example ?
I examine switching random between CPU , it works, ok.
But this is, as you say not for performance , but only for fan noise.
Time processing is same, or little up (about 5%)
I want also examine put sleep(1) to my function in cycle, where is processing data, but time processing extremely up, not usable, no good. With sleep I used this :
cbprepinac:={||oTimer:=Thread():new(),;
oTimer:setInterval(10),;
oTimer:start("sleep",1)}
eval(cbprepinac)
this I do not know not work, ?
1. I want use all CPU , with running modules on every (each have own CPU swith, this is OK, so I do not test performance, if it will be better with run app on 4 CPU, or on 1 CPU, or 4 CPU with random swith every for example 100ms
This I want testing this weekend, after tests I say result.
2. I do not know, how can I prevent CPU usage to 100%, i can not slow process, I need control CPU utilization, and when go to for example 90%, put some "sleep" time.
I mean, it is difficult measure CPU utilization, and also need some thread.
3. I do in process cycle this :
cak++
if cak=5000
cak=0
sleep(1)
endif
and this down CPU utilization from 100% to about 95. This help me, but have negative effect to performance, about 5-10%.
This I want use in combination, every module running on own CPU and little down utilization from 100% to 90-95 to prevent halt PC.
I am very curious about the results
