Marcus366 / coroutine

coroutine library with pthread-like interface in pure C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coroutine

Cooperative multitasking based network library in pure C.

Details

Coroutine is a combination of goroutine of golang and actor of erlang.

Each coroutine is actually a user thread which will be schedule away when come across I/O.

This library mainly focus on network programming. It has the same performance compared to event-driven model with more graceful code organization.

Status

The project is under development. Any issue or pull request is welcomed.

How to Use?

Interfaces are all easy to understand and you can read the document in coroutine.h

We regard a stream of instruction flow as coroutine. The only differences between coroutine and thread are that coroutine is cooperative while thread is preemitive.

About

coroutine library with pthread-like interface in pure C


Languages

Language:C 95.6%Language:Makefile 3.6%Language:Assembly 0.7%