As my understanding, on a Linux system (x86_64 architecture), any process is scheduled by the kernel. But I don't quite understand how it works.
Saying a very simple process, which does nothing but run only an infinite loop, this loop has no business with any I/O action. Would this process be scheduled by the kernel too? Does it mean that the kernel may not give its the CPU time so that it has to be stopped for a very short time and the user hardly feels this kind of stop?
If I'm right, my question is if there is a way to allow a programmer to control the scheduling strategy?
Saying that I have a process, after running it, the kernel may schedule it so that it may not use the CPU for a while (am I right?). Is there a method to force my process to be able to use the CPU continuously?