On Sat, 2002-12-28 at 13:20, Ronghua Zhang wrote: > If during a system call, a process's time quota is depleted, will it > immediately be preempted or delayed until system call is finished? In 2.4, it will be delayed until the system call is finished or the task sleeps (hits a wait queue or whatever). In 2.5, with the preemptive kernel, the process will be rescheduled immediately. > If it's the latter case, why we need 'partial_writers' variable to protect > multiple writers with partial packets in tcp_do_sendmsg(), since only one > process can be in the kernel mode at one time. Thanks. Because _many_ processes can be inside the kernel at once, since tasks can sleep. Plus there is SMP. And voluntarily rescheduling... Robert Love -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/