Question: how system call is executed?
Answer: When a user program invokes a system call, a system call instruction is executed, which causes the processor to begin executing the system call handler in the kernel protection domain. ... Switches to a kernel stack associated with the calling thread. Calls the function that implements the requested system call.