An open API service indexing awesome lists of open source software.

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

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.