Giter Site home page Giter Site logo

peteprattis / processes-and-threads Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4 KB

A program written with compatibility with Posix and uses Posix Threads to increase or/and decrease a global variable creating a child process and threads.

License: MIT License

C 100.00%
c posix posix-threads subsidiary-process programm student

processes-and-threads's Introduction

A C Project

This is a simple C project from my early days as a Computer Science student

This programm was created for the third semester class Operating Systems and is a simple C programm neccessary to pass the class

Description of project

A program written with compatibility with Posix and uses Posix Threads to increase or/and decrease a global variable creating a child process and threads.

  1. The program implements a function called change_number that can increase (or decrease) a universal integer variable by a step given by the user.
  2. The program creates a subsidiary process in its execution and implements change_number twice in a different way: the parent process reduces its own copy of the global variable by 1, while the subsidiary increases its own copy of the global variable by 2.
  3. The subsidiary process will create two threads: one will increase the value of one variable and the second will reduce the value of the same variable.

About this project

  • The comments to make the code understandable, are within the archives
  • This program was written for Linux environment which is compatible with POSIX
  • This repository was created to show the variety of the work I did and experience I gained as a student

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.