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