I was listening to OS lecture, and got confused by these two phrases.
- "When a user process calls IO, it invokes a system call and waits until system call is finished"
- "When a user process invokes a system call, the user process itself executes the kernel function in the kernel mode"
I believed that a user process invokes system call to use the IO, the kernel executes the kernel instructions, while kernel is running user process waits until the IO process is finished. So I thought phrase 2 must be wrong. But professor said both are correct. Can someone help me understand why?