Giter Site home page Giter Site logo

pthread_homework's Introduction

pthread_Homework

環境

OS: Windows 10
IDE: Dev C++
Langage: C

說明

平行程式的作業
用 pthread 實作

  1. BusyWaiting
  2. Mutex
  3. Semaphore

三種 Race Condition 的解決方法

notUseShareMemory(Bad).c
因為誤解題目但覺得還有點用就留下來了

作業題目

要將一大串輸入資料
分群統計成直方圖
利用多執行緒來做資料的分群
並用三種方法解決 Race Condition 的問題

pthread_homework's People

Contributors

paul90539 avatar

Watchers

James Cloos avatar  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.