Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.49 KB

File metadata and controls

40 lines (28 loc) · 1.49 KB

🐚 Shell Scripting Programs – Operating Systems Lab (4th Semester)

This repository contains all the Shell Scripting programs developed as part of the Operating Systems Lab during the 4th semester of B.Tech in Information Technology. The programs focus on mastering the Linux shell environment and simulating key CPU scheduling algorithms using shell scripts.


📌 About the Lab

The OS Lab aimed to enhance our understanding of:

  • Linux shell and terminal usage
  • Writing and executing shell scripts
  • Implementing decision-making and looping constructs
  • Simulating CPU scheduling algorithms using Bash

🧠 Key Concepts Covered

⚙️ Shell Scripting Fundamentals

  • Linux shell commands (bash/sh)
  • Command-line input/output
  • Conditional statements: if, if-else, case
  • Loops: for, while, until
  • Operators: Arithmetic, Logical, Relational
  • Functions in shell scripting
  • File handling and permissions

🧮 CPU Scheduling Algorithms Implemented

Algorithm Description
FCFS (First-Come First-Serve) Non-preemptive algorithm that executes processes in order of arrival
SJF (Shortest Job First) Selects the process with the smallest burst time
SRTF (Shortest Remaining Time First) Preemptive version of SJF
RR (Round Robin) Time-sharing scheduling using a fixed time quantum
HRRN (Highest Response Ratio Next) Non-preemptive algorithm that schedules based on response ratio