I am building a Pov Display using Raspberry pi 4 and a code written in Go. The raspberry pi has a sensor (btn) to know when it displays the code. The problem is my raspberry won't execute the code at same delay every detection of (btn), therefore I see dots and some time lines. I want just to make the raspberry pi display the code written in Go with same delay every detection to see just dots. is it possible to tell the raspberry to execute my process in real-time without interrupting like execute the process in one core and use the others for system ?
enter image description here

1 Answer 1


You Need to exclude one CPU from the Overall scheduling in your /boot/cmdline.txt, afterwards you can assign the process to it via


as you already found out. To exclude a CPU, add the boot Parameter


The Number (N) is 0-based.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.