https://github.com/ghazaleze/os-lab
some codes of my operating system laboratory
https://github.com/ghazaleze/os-lab
c client-server fork laboratory-exercises linux opreating-systems
Last synced: about 2 months ago
JSON representation
some codes of my operating system laboratory
- Host: GitHub
- URL: https://github.com/ghazaleze/os-lab
- Owner: GhazaleZe
- Created: 2020-02-07T11:07:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T20:46:54.000Z (over 6 years ago)
- Last Synced: 2025-02-23T15:14:27.807Z (over 1 year ago)
- Topics: c, client-server, fork, laboratory-exercises, linux, opreating-systems
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a short discription for each file
## lab4_question2:
The goal is to maximize CPU utilization under a special circumstance.
It works like this: make **MAXCHILD** children and **MAXCHILD** is a number between 2 and 10.
Each child makes a random number between 1 and 1000 and waits for this random number second, then prints the message(PID is ID of the created process):
> Message from child PID: waited for RANDOM seconds.
The parent process checks all children if one of them is ended, it creates a new child(has its own function).
Parent process continues until it receives a signal like **CTRL+C** .