Most of the programs specified in Operating Systems lab for CSE S4 KTU
- Write a shell script that computes the gross salary of an employee according to the following rules:
(i) if basic salary is < 1500 then HRA =10% of the basic and DA =90% of the basic.
(ii) If basic salary is >=1500 then HRA =Rs.500 and DA=98% of the basic - Write a shell script to print all armstrong numbers between two numbers.
- Write a shell script to find smallest of 3 numbers that are read from keyboard.
- Write a shell script to validate password strength. Here are a few assumptions for the password string:
Length should be minimum of 8 characters.
Should contain both small and capital case letters, atleast a digit and an underscore(_).
If the password doesn't comply with any of the above conditions, then the script should report it as a "Weak Password". - Write a shell script that generate all 3 digit numbers that contain only the digits 0, 1, 2, 3.(number does not start with 0)
- Write a shell script that finds the smallest prime number greater than n which is palindromic.
- Write a shell script that sort n numbers.
- Write a shell script that performs linear search.
- Write a shell script that print the following pattern upto n rows, for a given n.
1
2 2
3 3 3
4 4 4 4
.
.
n n n n n .. - Write a shell script that prints the diamond pattern upto n rows, for a given n.
- To write a shell script that accepts one or more file name as arguments and converts them to uppercase, provided they exist in the current directory.
- Write a shell script which accepts any number of arguments and prints them in the reverse order.
- Program to illustrate fork, getpid, exit, wait
- Program illustrating exec
- Program illustrating stat
- Program illustrating opendir, readdir,close
- Program implementing open, read, write and close
- Round Robin Scheduling
- First Come First Serve Scheduling
- Shortest Job First Scheduling
- Priority Scheduling
- Program to write into the memory
- Program to read from memory
- Dining Philosophers Problem.
- Readers Writers Problem.
- Implement memory allocation for fixed partitions using the following methods:
First Fit Allocation
Best Fit Allocation
Worst Fit Allocation
- Implement Page Replacement Algorithms:
FCFS
LRU
LFU
- Implement Banker's Algorithm for Deadlock Avoidance.
- To implement the deadlock detection algorithm for deadlock detection with resource request.
- To simulate the disk scheduling algorithms
If any Issues, feel free to open an issue or contact me at my email
Contributions are welcome. Please open an issue or a pull request to contribute.
Star the repository if you like it. Thanks! 😄