>>105866068not multithreading
It's preemptive multitasking, where the hardware itself pauses the execution, saves the context and enters the handler in kernel, which then saves more of the context, loads context of another program, and jumps into it to resume from where it was interrupted (this is called context switching)
unless you're running your webserver as a driver (or rather kernel itself), you don't have access to that, so you need to do cooperative multitasking, where your "units of execution" can detect when they can't continue without waiting and can pause themselves are return to outer scope ("scheduler", not the OS one)
OSes had multitasking before multithreading and hardware preemption, by exposing an API for cooperating to applications, and making them cooperative, issue being that if you encounter a bug in a program that prevents it from returning to OS scheduler, the computer just hangs
>>105866241>It's fine to not know what concurrency is, just don't implement it on your flawed understanding