Welcome to the Operating Systems Lab repository! π₯οΈ
This repository includes various OS-based programs implemented in C, covering core concepts such as process scheduling, memory management, synchronization, and system calls.
This repository serves as a hands-on resource for understanding key Operating System principles through practical C programs. Ideal for students, developers, and anyone interested in systems programming.
FCFS_10.c
: First Come First Serve schedulingFIFO.c
: Page replacement using FIFO algorithmFSFC.c
: File system with First Fit allocationFirst_Fit.c
: Memory allocation using First FitBankers_Algorithm.c
: Deadlock avoidance using Bankerβs algorithm
Exp-04(Fork).c
: Demonstration offork()
system callExp-04(Wait).c
: Use ofwait()
andexit()
for child-parent synchronization
Producers_Consumers.c
: Producer-Consumer problem using semaphores
EXP_02.sh
: Shell script demonstrating basic Linux commandsBasic_Terminal_Commands/
: Collection of commonly used Linux terminal commands
Experiment-03.c
: Custom logic (based on course experiments)
- GCC Compiler (e.g.,
sudo apt install build-essential
) - Linux OS (recommended)
- Basic understanding of C and system calls
gcc filename.c -o output
./output
For shell scripts:
chmod +x script.sh
./script.sh
π OS-Lab-C
βββ Basic_Terminal_Commands/
βββ Bankers_Algorithm.c
βββ FCFS_10.c
βββ FIFO.c
βββ FSFC.c
βββ First_Fit.c
βββ Producers_Consumers.c
βββ Exp-04(Fork).c
βββ Exp-04(Wait).c
βββ Experiment-03.c
βββ EXP_02.sh
βββ LICENSE.md
βββ README.md
Youβre welcome to contribute:
- Add more scheduling/memory algorithms
- Fix bugs or suggest improvements
- Include documentation or test cases
Steps:
1. Fork this repository
2. Create a new branch: git checkout -b feature-name
3. Commit your changes: git commit -m "Add feature"
4. Push to the branch: git push origin feature-name
5. Create a Pull Request
This project is licensed under the MIT License. See the LICENSE.md file for more details.
Developer: Aman Antuley π§ Email: amanantuley@gmail.com π¦ Twitter: @amanantuley πΌ LinkedIn: Aman Antuley
π Explore, learn, and master OS concepts the practical way! π§©π§βπ»