[Info-vax] KP threads
Arne Vajhøj
arne at vajhoej.dk
Thu Dec 23 20:53:10 EST 2021
On 12/23/2021 3:05 PM, David Jones wrote:
> 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.
I am sure they have their use.
But are you saying that the reason I can not see how I can use them
to start a bunch of threads utilizing all cores is that they can't
because they are not intended for that purpose?
Arne
More information about the Info-vax
mailing list