Multi-threading with a scheduler within a single "run thread", something like coroutines.
This is perfectly doable and quite straightforward.
This must be aided by atomic instructions, like "fetch and set", "fetch and increment" etc.
Multi-threading with a scheduler within a single "run thread", something like coroutines.
This is perfectly doable and quite straightforward.
This must be aided by atomic instructions, like "fetch and set", "fetch and increment" etc.
MightyPork
changed title from Preemtive "multi-threading" to Preemtive multi-threading (co-routines)4 years ago
Multi-threading with a scheduler within a single "run thread", something like coroutines.
This is perfectly doable and quite straightforward.
This must be aided by atomic instructions, like "fetch and set", "fetch and increment" etc.
Preemtive "multi-threading"to Preemtive multi-threading (co-routines) 4 years agocoroutines implemented