Tag Info

Hot answers tagged

2

It doesn't as much "get" CPU, as it just runs on it. The kernel decides on which core and when and for how long the process runs. It schedules the tasks so that each process gets its time slices on the CPU: it runs for a while, then either after the time slice expires, or a system call occurs, the context is switched to another process. The state of the ...


1

CPU A process can lower its CPU priority (but not decrease it, man 2 setpriority). Furthermore it can put itself to sleep for a certain time. But it cannot decide how the CPU time it saves is given to other processes. For the situation with threads see psusi's comment. memory A new process gets an initial amount of RAM (I don't know, though, whether this ...



Only top voted, non community-wiki answers of a minimum length are eligible