yes, I actually realized about the problem because one of the parameters of my code is how many cores to use and I use that function to set them. However when running top on terminal the process only get up to 100% cpu usage.