Un naufragio personal

Ángel Ortega

Implementing simple cooperative threads in C

Back in the nineties I created a collaborative multitasking library for MSDOS using the setjmp() / longjmp() functions: it had some minor restrictions that I couldn't find the time to fix so I finally got bored and abandoned it. This article describes the development of a very similar library in a very didactic way.

https://brennan.io/2020/05/24/userspace-cooperative-multitasking/