Get the latest tech news
Show HN: Neco – Coroutine Library for C
Concurrency library for C (coroutines). Contribute to tidwall/neco development by creating an account on GitHub.
It's a non-goal for Neco to provide a scalable multithreaded runtime, where the coroutine scheduler is shared among multiple cpu cores. Windows and WebAssembly support the core coroutine features, but have some key limitiations, mostly with working with file descriptors and networking. Communicating between coroutines that are running in different threads will require I/O mechanisms that do not block the current schedulers, such as pipe(), eventfd() or atomics.
Or read this on Hacker News