Running a long CPU-intensive simulation
Hello reddit, I need to gather some data by running a CPU-intensive simulation I have written in C. I don't know how many times and for how long, but possibly for a few hours straight. What's the recommended way of doing this? Should I throttle my CPU to prevent it from melting? (if yes, how?) Sligh...
why do you hardcode
/home/workdan(or/home/loudan) when you can use$HOME?relevant wiki article
/optnormally has755permissions. If you develop as your user and not root (as you should), then you won't be able to write to this folder.The fix the wiki suggests is explained in the link above, and consists in:
sdkusers/opt/android-sdkand everything in that (-Rflag) to sdkusers/opt/android-sdkgroup writable, i.e.775instead of755.As your
/opt/android-sdkis already775, then what you should do after each upgrade is:chown -R :sdkusers /opt/android-sdk/chmod -R g+w /opt/android-sdk/You can also make it a pacman hook if you don't want to do it manually.
dmenu-extended. Powerful, customizable, unobtrusive, minimalist.
At least you're not forced to use WinXP.
goes back to his bug-ridden corner
Great, thanks for the clear answer!
p.s. the simulation is currently single-threaded, I hope to be able to make it multithreaded. I tried a quick run and indeed the core that gets chosen heats up a bit (it went from 30 to 60°C in a few minutes, but the others stayed relatively cool).