Coder Social home page Coder Social logo

coroutine-3's Introduction

协程的简单实现

目的

学习协程原理,并记录了学习过程,以供有相同需求的同学参考

以博客的形式描述了大概思路

  1. 准备知识
  2. 实现简单协程库
  3. 使用协程库并实现简单非阻塞socket服务器

文件说明

  • coroutine.h 协程头文件
  • coroutine.c 协程实现
  • test_simple.c 简单测试
  • test_socket.c 非阻塞socket测试
  • client.py 单线程socket,用户输入测试
  • client_thread.py 多线程socket测试

coroutine-3's People

Contributors

xiaobing94 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.