wondering about how the operating system runs multiple processes, like how it gives control to the process and takes it back when it's time to switch to another process
found osdev wiki
<-- suddenly interested in os development
found osdev wiki
<-- suddenly interested in os development
- the kernel keeps track of processes/threads
- running programs need to do syscalls to allocate memory and do other things
- when the syscalls happen it's the kernel's time to do things and it can decide whether to return to the calling process or to run other processes
is that how it works :akko_derp:
(got that idea from this paragraph)
> The other place you might want to update the amount of time a task has consumed is immediately after the CPU changes from user-space code to kernel code and immediately before the CPU changes from kernel code to user-space code
https://wiki.osdev.org/Brendan's_Multi-tasking_Tutorial
there's a lot of buzzwords that I need to look up
this is interesting
- the kernel keeps track of processes/threads