Someone told me that Linux can run on CPUs which do not support multiple tasks.
But if you have one core only which doesn't support multitasking, how does Linux implement multitasking?
Let's say I want to run two programs which need 1h to terminate each. How does Linux pause the first program after ~100ms to switch to the second program?
Here are 2 scenarios I can think of:
- It's not possible to run multiple tasks at once.
- Linux uses a hardware timer to interrupt running processes.