Set
Set
2. a. Illustrate the following UNIX Commands: Create and list the content in a file .
b. Develop a Shell program to find Area of a Square.
c. Implement Semaphore using C.
12. a. Develop a Shell program to find whether given number is positive or negative.
b. Implement Semaphore using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)
14. a. Write a shell program to find the area of triangle by getting base and height from user.
b. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67.
The SCAN scheduling algorithm is used. The head is initially at cylinder number 53 moving towards
larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. Find the total
head movement (in number of cylinders) incurred while servicing these requests using C. (50)
16. a. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67. The
CLOOK scheduling algorithm is used. The head is initially at cylinder number 53 moving towards
larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. Find the total
head movement (in number of cylinders) incurred while servicing these requests using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)
18 a. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67. The C-
SCAN scheduling algorithm is used. The head is initially at cylinder number 53 moving towards larger cylinder
numbers on its servicing pass. The cylinders are numbered from 0 to 199. Find the total head movement (in
number of cylinders) incurred while servicing these requests using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)