How to run a python code on single CPU?

--

Using the following command on linux Ubuntu

taskset --cpu-list 1-1 python XXX.py

--

--

No responses yet