Echoing what Telurium said..
Also.. if you can make do with a cooperative scheduler.. there is this
https://www.cs.ucr.edu/~vahid/rios/
a very simple implementation of a round robin scheduler that does not depend on premption
Preemption doesn't really make too much difference. You have to be a little more careful implementing locks / semaphones. The main other difference is that a preemptive scheduler needs to have an area to save all registers plus PC for each thread, while a cooperative one only needs space to store RA, SP, S0, S1 on the CH32V003 with the current ilp32e ABI because any function call, including yield(), assumes all the rest are nuked.
Cooperative multi-tasking schemes can be pretty annoying to work with on larger machines, with a need to perform a flexible array of functions. However, for en embedded system that needs to do only one thing, and do it well, there are very few downsides, and the developers job is quite straightforward. I think people who put down the cooperative approach forget that MS built their entire business on cooperative multi-tasking. It wasn't until Windows NT that they moved beyond it, yet Windows 3.11, 95, and 98 did remarkably well.
I'm not sure in what sense that is a response to what I wrote, especially as I certainly have not "put down" cooperative multi-tasking.. Perhaps it's really to the message I was replying to?
I've never used Windows but I spent more than 15 years programming the cooperatively scheduled MacOS pre Mac OS X.
I also spent a decade or so working on a stockbroking software system with quite a number of users (couple of dozen) on a very low powered minicomputer that used entirely cooperative multitasking. The COBOL compiler generated code that called yield() on every backwards branch. Programming in assembly language was highly restricted because it was essential that all programs called yield() frequently enough.
I also implemented from scratch a cooperative threading library, scheduler, semaphores etc, and garbage collector for a Java native compiler running on ARM7TDMI processors in Qualcomm "BREW" mobile phones (used on the Verizon network), which was very successful for several years before iPhone and Android took over the world. We did projects helping 9 or the top 10 mobile game companies (all but EA) port Java software to BREW, plus Amazon, Disney, Yahoo! and some companies with for example medical or logistics software.