Git Product home page Git Product logo

threadtest's Introduction

threadtest

多线程练习代码, 本repository是C++11多线程学习的示例代码,按照多线程的几个部分分文件夹放置,通过脚本文件编译执行文件。

使用方式,用户通过脚本compile.sh就会生成对应文件的Makefile文件,然后make编译,最后在执行程序查看结果。

目录结构

/-------
   |______.git
   |______thread
   |    |_____compile.sh
   |    |_____example.cpp
   |    |...
   |
   |______mutex
   |    |_____compile.sh
   |    |_____example.cpp
   |    |...
   |...

执行步骤:

  1. sh compile.sh example1.cpp 会生成对应example1.cpp的Makefile文件。
  2. make 会生成example1.cpp对应example1.o和example1。
  3. ./example1 执行查看结果。

threadtest's People

Contributors

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