Home:ALL Converter>Why do Windows NT threads have separate user mode/kernel mode stacks?

Why do Windows NT threads have separate user mode/kernel mode stacks?

Ask Time:2014-08-07T16:25:15         Author:Alex D

Json Formatter

Windows Internals, 6th Edition from Microsoft Press says that in Windows NT, each thread has 2 stacks: one used when running in user mode, and one used in kernel mode.

Why is this so? It seems that the user-mode stack could also be used while in a system call. Is there some advantage to this design?

Author:Alex D,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25177591/why-do-windows-nt-threads-have-separate-user-mode-kernel-mode-stacks
yy