tcputhreads.sh - numeric - C++ library with numerical algorithms
 (HTM) git clone git://src.adamsgaard.dk/numeric
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       tcputhreads.sh (165B)
       ---
            1 #!/bin/sh
            2 # Returns the number of threads the system CPU(s) have
            3 threads=`cat /proc/cpuinfo | grep processor | awk '{print $3}' | tail -1` && echo "$threads+1" | bc