Get unlimited access
Open in app
Home
Notifications
Lists
Stories

Write
Jimmy Shen
Jimmy Shen

May 12

·
1 min read

How to run a python code on single CPU?

Using the following command on linux Ubuntu

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

--

--

More from Jimmy Shen

Data Scientist/MLE/SWE @takemobi

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

Try Knowable

Recommended from Medium

Timofey Ivaykin

Timofey Ivaykin

Вопрос:

Pablo Ramos

Pablo Ramos

in

A bit off

Sniffing Packets with Go

Gamic Guild

Gamic Guild

How to Get Started in Gamic Play-to-earn Guild

Swarup Das

Swarup Das

Serverless Web Apps with AWS Lambda and Kotlin

Shane Tarleton

Shane Tarleton

Please stop using nested if statements.

Image of code on a notebook screen.
Sam Yi

Sam Yi

Why Snowflake

Julien Dorra

Julien Dorra

The Twitter API journey: a glimpse back to the future of Twitter that never was, as laid out in…

Tom Harrison

Tom Harrison

in

Tom Harrison’s Blog

Install PostgreSQL extension pglogical on macos

AboutHelpTermsPrivacy


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

Kenny Hin | @khin89@gmail.com

Kenny Hin | @khin89@gmail.com

Day 11 NuCamp _ Modules and Packages feat. Random Module

Alfatih Ridho NT

Alfatih Ridho NT

Flask- Chapter 1 : What is Flask?

Chu Lục Ninh

Chu Lục Ninh

A journey of atomic operation in Python — Part 1

develxper79

develxper79

functools in python

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable