Skip to contentSkip to conversation

task switching at Page Faults

DISCUSSION Andi Kleen 1 participant 1 message Apr 19, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#2 lore raw
Quoted 4 lines · Fabiano Ramos

kernel", about 2.4, and the authors:
1)assure that there is no process switch during
the execution of an eception handler (aka syscall). they emphasize it.

They're wrong. First the system call or exception can block and then when kernel code returns to user space it always checks if the time slice hasn't expired.

Quoted 2 lines

2) say that the execption handler may not generate
exceptions, except for page faults.

That's also incorrect. e.g. it can generate GPFs (e.g. when trying to load a segment register supplied by the user and it is not correct)
and a few other exceptions in extreme cases. Usually these exceptions are handled without sleeping though.

-Andi