4 ms·
> There would be no need for these server threads if the client thread transferred directly to the server process address space. The client’s stack isn’t prese
by fanf2 2y ago
> There would be no need for these server threads if the client thread transferred directly to the server process address space.
The client’s stack isn’t present in the server’s address space: the server needs a pool of threads so that a door call does not need to allocate memory for the server stack.
- starspangled 2y agoIt wouldn't need a pool of threads for a stack, it just needs some memory in the server's address space for the stack. Together with the other points about marking the current thread sleeping and passing control to the server thread, and about server threads waiting for an invocation, I think what is described is pretty clearly the server threads are being used to execute code on the server on behalf of the client request.