I'm running a miner on my Raspberry Pi at 100% CPU performance. I want the Raspberry Pi to send some tweets about his temperature and Hashrate over twitter. So far I've written a script which does its job well... To keep the miners performance it's important for me which method consumes less power/performance.
What would you use? Cronjobs or sleep?
Any help would be very appreciated!
Cronjobs should be more efficient. There are always being check out by the system, if you use sleep you would be still checking for cronjobs (even if there's no job to run) so sleep is innecesary.
Do cronjobs have better performance than sleep functions?