This repository contains exercises in C, Java, and shell scripting for OS concepts.
- Task 1: Modify file names (lower/upper/sed) with
modifyscript and test withmodify_examples. - Task 2: The program creates multiple child processes, handles signals like SIGINT and SIGTERM, and demonstrates how a parent can manage its children safely.
- Task 4: Virtual Memory Simulator (Java) – run
java MemoryManagement commands memory.confto map pages and track page faults. - Task 5: Dining Philosophers (C, Shared Memory): Fork-based processes synchronized with semaphores; handles SIGINT.
- Task 6: Copy files using
read/writeormmap(copy [-m] <src> <dest>), withgetopt()for options. - Task 7: Dining Philosophers (C, Pthreads): Thread-based simulation with mutexes; philosophers think/eat for 40s.