detectActiveCores function

Count Active Threads Based on CPU Usage