# Get the number of avaialble cores (threads).
function _core_count() {
cat /proc/cpuinfo | grep ^processor | wc -l
}