[Info-vax] KP threads
Arne Vajhøj
arne at vajhoej.dk
Thu Dec 23 10:25:54 EST 2021
They have been mentioned a few times, so I decided to take a look.
And I am puzzled.
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).
What am I missing?
Arne
More information about the Info-vax
mailing list