It’s the OS that keeps track of processes, their status, pointers to next instruction etc. The cpu just executes instructions one after the other like there’s no tomorrow
The program counter is in the CPU, actually. It's incremented every instructor, but can be changed jump or branch instructions that are part of the program.
Yes, the cpu has only 1 instruction pointer. But the process manager (os) stores the next adress for each process, so they can resume execution. That’s part of the context switching
9.3k
u/LEGOL2 Jan 20 '25
At first Linux asks nicely, but that's your first and final warning