How does a process executing in kernel space come to know of occurrence of unexpected (asynchronous) events?
问题 I have two questions: 1) Kernel-space process : When a process is executing in kernel mode, it does not receive any signals. Instead a process puts itself in a wait-queue when it expects to receive completion of any event. Such as completion of an I/O event . The process does not do anything at this stage. Once the event is triggered, ( the kernel sets a trap ? Correct if wrong ) and finally the process is waked up and resumes execution. Above is the case for expected events or (synchronous).