Linux allows to allocate a processor-core to a running process (ie, having a pid) using this command:
taskset -pc core pid
This assumes that the process is already running, and its pid is available, and we change the core that is assigned to it. So, the core will be switched the next time the process goes out of CPU during context switching or time sharing.
But is it possible to assign the core upfront, right when the process is being run? As far as I know, the answer is negative, but just wanted to confirm with the experts, just in case if I am missing something.
(I had asked this question on stackoverflow/69250190, but I was advised to post the question here.)