How to "own" a processor?

时间:2018-06-04 17:35:35

标签: python windows multithreading cpu

I have a somewhat different problem to solve with threads in Python.

I have a Python application that talks to very high-speed hardware through a polling interface. I would like the Python process to "own" one of the CPUs, that is, I don't want the Python application to share its CPU with any other process.

What I am currently seeing is that my application gets put "on hold" for tens of milliseconds at a time while it is servicing hardware that executes commands in tens of microseconds, thus the hardware goes idle while my Python application is put on hold.

I am running under Windows 10. Is there a system call of some kind that lets me own the CPU?

0 个答案:

没有答案