How to run a python code on single CPU?

taskset --cpu-list 1-1 python




Data Scientist/MLE/SWE @takemobi

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Hidden gems of UIStackView

Implementing Speed

CS371p Spring 2021: Samantha Tuapen

How to Clean up Your Mac Desktop?

Coroutine in the Spawn Manager

Web Scraping Amazon Reviews with Python and Beautiful Soup

PYAUTOGUI HEADLESS Docker mode without display in Python

Bedrock Hot Wheels Acceleracers — Synkro — Teku

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jimmy Shen

Jimmy Shen

Data Scientist/MLE/SWE @takemobi

More from Medium

How to Train a Scalable Classifier with FastAPI and SerpApi ?

How to Scrape JavaScript Heavy Sites Like a Pro With Python

Plotting with seaborn on SageMaker

How to split data in Tensorflow