KEMBAR78
Os Practical File | PDF | Scheduling (Computing) | Concurrent Computing
0% found this document useful (0 votes)
297 views50 pages

Os Practical File

The document contains 20 questions asking to write programs to simulate various CPU and memory scheduling algorithms, as well as other operating systems concepts. For each question, it lists the question, provides space for code and output, and numbers them Q1 through Q20. The questions cover topics like Linux shell commands, processes and process trees, CPU scheduling algorithms, memory management algorithms, and disk scheduling algorithms.

Uploaded by

Kunal Mathur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views50 pages

Os Practical File

The document contains 20 questions asking to write programs to simulate various CPU and memory scheduling algorithms, as well as other operating systems concepts. For each question, it lists the question, provides space for code and output, and numbers them Q1 through Q20. The questions cover topics like Linux shell commands, processes and process trees, CPU scheduling algorithms, memory management algorithms, and disk scheduling algorithms.

Uploaded by

Kunal Mathur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 50

INDEX

S.No Page No
1 Practice Linux shell commands.

2 Write C programs using fork(), getpid(), getppid() and exec()


system calls.
3 Write a C program to represent a family of processes as a tree.

4 Write a program to simulate FCFS CPU scheduling algorithm.

5 Write a program to simulate SJF scheduling algorithm.

6 Write a program to simulate pre-emptive Priority scheduling


algorithm.
7 Write a program to simulate Round Robin scheduling
algorithm.
8 Write a program to simulate Multilevel Feedback Queue Scheduling
Algorithm
9 Write a program to simulate deadlock avoidance.

10 Write a proagram to stimulate deadlock detection?

11 Write a program to simulate best-fit contiguous memory allocation.

12 Write a program to simulate FIFO page replacement


algorithm.
13 Write a program to simulate LRU page replacement
algorithm.
14 Write a program to simulate Second Chance page replacement
algorithm.
15 Write a program to simulate Enhanced Second Chance page
replacement algorithm.
16 Write a program to simulate LFU page replacement algorithm.

17 Write a program to simulate FCFS disk scheduling algorithm.


18 Write a program to simulate SSTF disk scheduling algorithm.

19 Write a program to simulate C-SCAN disk scheduling algorithm.

20 Write a program to simulate LOOK disk scheduling algorithm.

Q1-Practice Linux shell commands.


Q2- Write C programs using fork(), getpid(), getppid() and exec() system calls.
Code : : -
OUTPUT: : -

Q3-Write a C program to represent a family of processes as a tree.

OUTPIT : : -
Q4. Write a program to simulate FCFS CPU scheduling algorithm.
OUTPUT : : -
Q5 – Write a program to simulate SJF scheduling algorithm.

Code : : -
OUTPUT : :
Q6- Write a program to simulate pre-emptive Priority scheduling algorithm.

Code : :
OUTPUT : :
Q7-Write a program to simulate Round Robin scheduling algorithm.

Code : :
OUTPUT : :

Q8 -Write a program to simulate Multilevel Feedback Queue Scheduling Algorithm


Code : : -
OUTPUT : : -
Q9-Write a program to simulate deadlock avoidance.
CODE : : -
OUTPUT : : -
Q10 – Write a proagram to stimulate deadlock detection?
Code : : -

-
OUTPUT : : -
Q11-Write a program to simulate best-fit contiguous memory allocation.

Code : : -
OUTPUT : : -
Q12- Write a program to simulate FIFO page replacement algorithm.

Code : : -
OUTPUT : : -
Q13. Write a program to simulate LRU page replacement algorithm.
Code : :-
OUTPUT : : -
Q14)Write a program to simulate Second Chance page replacement algorithm

Code : : -
OUTPUT : : -
Q15- Write a program to simulate Enhanced Second Chance page replacement algorithm.

CODE : : -
OUTPUT : : -
16. Write a program to simulate LFU page replacement algorithm.

Code : :-
OUTPUT : : -
Q17. Write a program to simulate FCFS disk scheduling algorithm.

Code : : -
OUTPUT : : -
Q18. Write a program to simulate SSTF disk scheduling algorithm. Code : : -
OUTPUT : : -

Q19- Write a program to simulate C-SCAN disk scheduling algorithm.

CODE : : -
OUTPUT : : -
Q20- Write a program to simulate LOOK disk scheduling algorithm.

CODE : : -
OUTPUT : : -

You might also like