I am wondering if there is any possibility to execute process from python with chrt 1 priority. It makes my timer much more accurate. Here is my piece of code:
import subprocess
p = subprocess.Popen(["/a.out"])
I am doing this task manually by typing in raspberry pi linux terminal: chrt 1 ./a.out
.
Is there any possibility to run process with chrt attribute via python?