https://github.com/fbn776/os-lab
KTU S4 OS lab codes
https://github.com/fbn776/os-lab
cst201 ktu ktu-s4-cse os oslab
Last synced: 12 months ago
JSON representation
KTU S4 OS lab codes
- Host: GitHub
- URL: https://github.com/fbn776/os-lab
- Owner: fbn776
- Created: 2024-02-26T19:15:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T03:45:15.000Z (almost 2 years ago)
- Last Synced: 2025-05-21T00:18:50.463Z (about 1 year ago)
- Topics: cst201, ktu, ktu-s4-cse, os, oslab
- Language: C
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OS-Lab
Code for KTU S4 OS lab (CST 201).
[//]: # (## Experiments)
[//]: # ()
[//]: # (### Experiment 1)
[//]: # (- Bash scripts for;)
[//]: # ( - calculating factorial of a number)
[//]: # ( - finding fibanocci number)
[//]: # ( - check whether a number is palindrome or not)
[//]: # ( - searching for a string file)
[//]: # ()
[//]: # (### Experiment 3)
[//]: # (- Simulating CPU scheduling algorithms;)
[//]: # ( - FCFS)
[//]: # ( - SJF)
[//]: # ( - Priority)
[//]: # ( - Round Robin)
## How to run
For shell scripts, use the linux terminal (bash) to run the scripts.
For example, to run the factorial script, use the following command:
```bash
chmod +x file.sh
./file.sh
```
For C programs, compile the program using gcc and run the executable. For example, to run the FCFS scheduling algorithm, use the following commands:
```bash
gcc fcfs.c -o fcfs
./fcfs
```
> NOTE: Most C codes work only for POSIX systems. For Windows, use WSL or Cygwin.