how to know how many cores of cpu is assigned to a process in python code example
Example 1: how to measure how much your of cpu your program is using in python
$ pip install memory_profiler
Example 2: how to measure how much your of cpu your program is using in python
$ pip install line_profiler