Table of Contents
This repo contains codes for various operating system functions and concepts, like scheduling, pipes, fork-wait, threads etc.
Here is the structure of the project repository:
Repository Structure
Operating-System-Functions/
├── Operating_System/ # Main Folder
│ ├── Fork_Wait_Exec/
│ │ ├── example1.c
│ │ ├── example1a.c
│ │ ├── example2.c
│ │ ├── example3.c
│ │ └──example4.c
│ ├── Pipes/
│ │ ├── demo_pipe.c
│ │ ├── fifo_read.c
│ │ ├── fifo_write.c
│ │ ├── msgq_read.c
│ │ ├── msgq_write.c
│ │ ├── shm_read.c
│ │ └── shm_write.c
│ ├── Processes/
│ │ ├── orphan.c
│ │ ├── welcome.c
│ │ └── zombie.c
│ ├── Programming_Exercise/
│ │ ├── P1/
│ │ │ ├── p1_q3.c
│ │ │ └── sum.c
│ │ └── P2_P3_P4_P5/
│ │ │ ├── p2.c
│ │ │ ├── p3.c
│ │ │ ├── p4.c
│ │ │ └── p5.c
│ ├── Scheduling_codes/
│ │ ├── fcfs.c
│ │ ├── priority.c
│ │ ├── round_robin.c
│ │ ├── sjf.c
│ │ └── srtf.c
│ ├── Threads/
│ │ ├── demo_threads.c
│ │ └── demo_threads_tb.c
│ └── LICENSE
├── README.md # Repository README
├── .gitignore # Git ignore file
└── .gitattributes # Git attributes file
- C
- Operating system concepts
- Clone the
'Operating-System-Functions'github repository.
git clone https://github.com/ankitacoder3/Operating-System-Functions.git - Navigate to the
'Operating_System'Directory in that.
cd Operating-System-Functions
cd Operating_System- Open the
individual directories pathin terminal. Say, open 'Processes' directory.
cd Processes- Type
"gcc <-filename->"to execute the files in that directory. Say, run 'zombie.c'.
gcc zombie.c- This shall provide a better understanding of operating system concepts.
- This provides a practical approach for the operating system concepts.



- Fork the Project
- Create your functions Branch (
git checkout -b functions) - Commit your Changes (
git commit -m 'Add some Functions') - Push to the Branch (
git push origin functions) - Open a Pull Request