Giter Site home page Giter Site logo

xiangy2020 / posix-threads-programming-tutorials Goto Github PK

View Code? Open in Web Editor NEW

This project forked from veinin/posix-threads-programming-tutorials

0.0 0.0 0.0 121 KB

Summaries and notes on pthreads programming.

Shell 0.13% C++ 2.47% C 94.85% CMake 2.55%

posix-threads-programming-tutorials's Introduction

POSIX 多线程程序设计

本项目所有内容摘录自《POSIX多线程程序设计》与《Linux多线程服务端编程:使用muduoC++网络库》部分章节,简化了书中的内容,并提供了完整的源代码实现。

编译、运行

前提,你需要安装 CMake。所有章节源代码都放在 src 目录下,你可以直接编译后运行。

git clone https://github.com/Veinin/programming-with-POSIX-threads-tutorials.git
cd programming-with-POSIX-threads-tutorials
./build.sh

运行实例代码:

$ ./bin/barrier_main
00: (10)0000045001 0000045002 0000045003 0000045004 0000045005 0000045006
01: (11)0000055001 0000055002 0000055003 0000055004 0000055005 0000055006
02: (12)0000065001 0000065002 0000065003 0000065004 0000065005 0000065006
03: (13)0000075001 0000075002 0000075003 0000075004 0000075005 0000075006
04: (14)0000085001 0000085002 0000085003 0000085004 0000085005 0000085006

目录

posix-threads-programming-tutorials's People

Contributors

veinin 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.