[Info-vax] KP threads

David Jones osuvman50 at gmail.com
Thu Dec 23 15:05:02 EST 2021


On Thursday, December 23, 2021 at 10:26:00 AM UTC-5, Arne Vajhøj wrote:
> Normally (pthreads, Win32, Boost/C++11, Java, .NET etc.) threads are 
> about starting a bunch of independent threads that does some work 
> in parallel. 
> 
> But when I look at EXE$KP_START, EXE$KP_STALL_GENERAL, EXE$KP_RESTART 
> and EXE$KP_END then I do not see such capability. 
> 
> Instead it is easy to see how to do coroutines with two streams 
> of execution but only one executing at a time transferring control 
> forth and back between the two streams (pretty similar to Modula-2 
> ISO COROUTINES TRANSFER). 
> 

Kernel processes are system context threads provided to give device drivers
that need them a private stack. That they look like coroutines fits in with the
rest of I/O request processing.




More information about the Info-vax mailing list