Os Pract Qns
-
Upload
jagan-nathan -
Category
Documents
-
view
213 -
download
0
description
Transcript of Os Pract Qns
1. Execute the following commands in UNIX. ( 5 X 2 = 10 )a. Create a file called sample.txt.b. Display all files with extension “.txt‟c. Copy the contents of sample.txt to sample1.txtd. Display the current date.e. Display the calendar for the month January of 2002.
2. Write a C Program to implement FCFS Scheduling algorithm.(40)3. Write a C Program to implement SJF Scheduling algorithm.(40)
UNIX Commands
( 10)
Algorithm ( 10 + 10 = 20)
Program ( 20 + 20 = 40)
Execution & Output
(10 + 10 = 20)
Viva voce ( 10)
TOTAL ( 100)
INTERNAL EXAMINER EXTERNAL EXAMINER
1. Write a C Program to implement FCFS scheduling algorithm 2. Write a C Program to implement Priority Scheduling algorithm.
Algorithm ( 10 + 10 = 20)
Program ( 20 + 20 = 40)
Execution & Output
(10 + 10 = 20)
RESULT ( 5+5=10)
Viva voce ( 10)
TOTAL ( 100)
INTERNAL EXAMINER EXTERNAL EXAMINER
1. Write a C Program to implement SJF scheduling algorithm 2. Write a C Program to implement Priority Scheduling algorithm.
Algorithm ( 10 + 10 = 20)
Program ( 20 + 20 = 40)
Execution & Output
(10 + 10 = 20)
RESULT ( 5+5=10)
Viva voce ( 10)
TOTAL ( 100)
INTERNAL EXAMINER EXTERNAL EXAMINER
1. write a shell program to illustrate the use of fork (), execlp (), getpid (), getppid (), exit () andwait () system calls
2. Write a C Program to implement best and worst fit algorithm.
Algorithm ( 10 + 10 = 20)
Program ( 20 + 20 = 40)
Execution & Output
(10 + 10 = 20)
RESULT ( 5+5=10)
Viva voce ( 10)
TOTAL ( 100)
INTERNAL EXAMINER EXTERNAL EXAMINER
1. Write a c program to implement FCFS scheduling algorithm.2. write a c program to implementation of producer-consumer problem using semaphores
Algorithm ( 10 + 10 = 20)
Program ( 20 + 20 = 40)
Execution & Output
(10 + 10 = 20)
RESULT ( 5+5=10)
Viva voce ( 10)
TOTAL ( 100)
INTERNAL EXAMINER EXTERNAL EXAMINER
1. Write a C Program to implement paging or segmentation concept.2. Write a C Program to implement SJF scheduling algorithm
Algorithm ( 10 + 10 = 20)
Program ( 20 + 20 = 40)
Execution & Output
(10 + 10 = 20)
RESULT ( 5+5=10)
Viva voce ( 10)
TOTAL ( 100)
3.4.5.6. INTERNAL EXAMINER EXTERNAL
EXAMINER