https://github.com/pprattis/processes-and-threads
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.
https://github.com/pprattis/processes-and-threads
c posix posix-threads programm student subsidiary-process
Last synced: 7 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/pprattis/processes-and-threads
- Owner: pprattis
- License: mit
- Created: 2019-10-18T09:38:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T09:54:37.000Z (over 6 years ago)
- Last Synced: 2025-02-04T21:44:19.229Z (12 months ago)
- Topics: c, posix, posix-threads, programm, student, subsidiary-process
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
>