CS3461 Set 3
CS3461 Set 3
(Regulations 2021)
1. a. Illustrate the following UNIX Commands: create a directory, create a file and view it. (10)
b. Develop a Shell program to generate Fibonacci Series. (40)
c. For the following table find the average waiting time and turnaround time using FCFS CPU
scheduling:
Process Arrival Time Burst Time
P0 0 5
P1 1 3
P2 2 8
P3 3 6
2. a. Illustrate the following UNIX Commands: Word Count in a File, List the Directory (10)
b. Develop a Shell program to find whether given number is even or odd. (40)
c. Implement IPC strategy using C. (50)
4. a. Illustrate the following UNIX Commands: Remove a directory, Remove a file (10)
b. Develop a Shell program to find whether given number is Prime. (40)
c. Implement Paging using C. (50)
5. a. Illustrate the following UNIX Commands: list the files and directories (10)
b. Develop a Shell program to find area and circumference of a circle. (40)
c. Write a C Program to implement First Fit Allocation Method for the following: (50)
Bloc
Process Size Size
k
P0 90 B1 20
P1 50 B2 100
P2 30 B3 40
P3 40 B4 200
B5 10
12. a. Develop a Shell program to find whether given number is positive or negative. (50)
b. Implement Semaphore using C. (50)
13. a. Develop a Shell program to find whether given number is Armstrong. (50)
b. Consider the reference string 6, 1, 1, 2, 0, 3, 4, 6, 0, 2, 1, 2, 1, 2, 0, 3, 2, 1, 4, 0 for a memory
with three frames and calculate number of page faults by using OPTIMAL Page replacement
algorithms in C. (50)
14. a. Develop a Shell program to find area and circumference of a circle. (50)
b. Write a C Program to implement Best Fit Allocation Method for the following: (50)
Bloc
Process Size Size
k
P0 40 B1 100
P1 10 B2 50
P2 30 B3 30
P3 60 B4 120
B5 35
15. a. Write a shell program to find the area of rectangle by getting length and breadth from user.
(50)
b. Consider a disk queue with requests for I/O to blocks on cylinders 4, 34, 10, 7, 19, 73, 2, 15,
6, 20. The SSTF scheduling algorithm is used. The head is initially at cylinder number 50.
The cylinders are numbered from 0 to 100. Find the total head movement (in number of
cylinders) incurred while servicing these requests using C. (50)
Page 2 of 3
18. a. Write a shell program to find squares of first 10 natural numbers. (50)
b. Develop a C program to implement Paging. (50)
Page 3 of 3