What process state has when it calls a syscall?
I mean, don’t asume it’s an I/O syscall like read or write…
It’s the process itselft that executes kernel code, or the process is suspendes and there’s like a “kernel thread” that execute the syscall handler (and knows wich process called (current))?
I’m not sure if changes from executing to ready, or executing to blocked.
It’s the process itself that switches to kernel mode and executes the system call – although it switches to a kernel stack to do so. A process executing inside the kernel has state Running, and can be pre-empted and end up in state Runnable.