Skip to content

Marcus366/coroutine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published