nthreads are a function of core