0% found this document useful (0 votes)
24 views8 pages

OS Lab Set-1

The document outlines various programming tasks and UNIX command exercises for students, including creating directories, writing C programs for scheduling algorithms, and implementing shell scripts. Each task includes a scheme of valuation with points allocated for aim and procedure, program, results, viva-voce, and record. The document serves as a guide for practical examinations in a computer science curriculum.

Uploaded by

drkavitha.jegan
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)
24 views8 pages

OS Lab Set-1

The document outlines various programming tasks and UNIX command exercises for students, including creating directories, writing C programs for scheduling algorithms, and implementing shell scripts. Each task includes a scheme of valuation with points allocated for aim and procedure, program, results, viva-voce, and record. The document serves as a guide for practical examinations in a computer science curriculum.

Uploaded by

drkavitha.jegan
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/ 8

a.

Create a directory on your own and include two files and list out the files that are present in
that directory using the necessary UNIX commands.
b. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.

SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. List out the number of lines, characters and words present in a file using the necessary UNIX
command.
b. Create a process and print the process id of current process and its parent process.
c. Write a C program for implementing an FCFS Scheduling algorithm by displaying process id,
average waiting time and average turnaround time.

SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Find a specific file in a directory and print only the unique lines that are present in that
file using appropriate UNIX commands.
b. Write a C program for identifying whether the process listed is a parent process or child
process using the necessary system calls.
c. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER


a. Using the appropriate UNIX Command check whether the remote host is responding well ornot.
b. Write a Shell program to count the number of vowels in a line of text.
c. Write a C program for implementing Interprocess communication using shared memory
concept.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a.Using the appropriate UNIX command print the last 10 lines of user specified file to
standard output.
b. Write a shell program to find the sum and average of four integers.
c. Write a C Program for simulating a deadlock detection model.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Give the correct UNIX commands that display a list of users who are currently logged in
to a computer and which prints the calendar of the current month and year.
b. Write a shell program to compute simple interest and compound interest.
c. Write a C program for implementing Round Robin Scheduling algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Using the desired UNIX command rename a file of the user to a new name.
b. Write a Shell program to find the area and circumference of a circle.
c. Write a C program for implementing Priority Scheduling algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMIN


a. Give the appropriate UNIX command for creating a user file with specific content and
display the same.
b. Write a C program illustrating the use of wait system call.
c. Write a C program for implementing the semaphore synchronization tool.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Write a Shell program to display student grades.


b. Write a C program for implementing the concept of synchronization in threads.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Use the appropriate UNIX command for printing the manual page of any given specific
command.
b. Write a Shell program to generate Fibonacci series.
c. Write a C program for implementing the concept of paging in memory management.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Write the specific UNIX commands for listing the contents of the current directory and also to
remove the same directory.
b. Write a Shell program to find the roots of a quadratic equation.
c. Write a C program for implementing FIFO page replacement algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER


a. Write a shell script to display the digits which are in odd position in a given number.
b. Write a C program for implementing Optimal page replacement algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a.Write the appropriate UNIX commands for printing the output to a terminal and to
print theprocesses running in a system.
b. Write a shell program to check whether the given number is positive or negative.
c. Write a C program for implementing LRU page replacement algorithm
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a.Write a shell program to find the sum of two numbers using function programming
b. Write a shell program for implementing sequential file allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Give the appropriate UNIX command for displaying the block number at the beginning
of each line.
b. Write a Shell program to check whether the given integer is prime or not.
c. Write a C program to implement Random file access technique.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER


Write a C program for implementing FCFS disk scheduling strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Write the UNIX command needed for creating a directory.


b. Write a C program for implementing Best Fit allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

Write a C program to implement SSTF disk scheduling strategy.


SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Give the UNIX command that for getting information from the DNS server.
b. Write a Shell script for calculating the area of a triangle.
c. Write a C program for implementing Best Fit allocation strategy
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Write a Shell program to find the smallest digit from a number.


b. Write a C program for implementing Worst Fit allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Write a shell program to find the smallest number between two numbers usingfunction.
b. Write a C program for implementing contiguous file allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

Write a C program for implementing SCAN disk scheduling strategy.


SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

Write a C program for implementing C-SCAN disk scheduling strategy


SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Create two files and move them in to a directory named ‘dir1’ using the desired UNIX
b. Write a Shell script for converting the temperature from Fahrenheit to Celsius.
c. Write a C program for implementing linked file allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Create a directory on your own and include two files and list out the files that are present in
that directory using the necessary UNIX commands.
b. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.

SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. List out the number of lines, characters and words present in a file using the necessary UNIX
command.
b. Create a process and print the process id of current process and its parent process.
c. Write a C program for implementing an FCFS Scheduling algorithm by displaying process id,
average waiting time and average turnaround time.

SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Find a specific file in a directory and print only the unique lines that are present in that
file using appropriate UNIX commands.
b. Write a C program for identifying whether the process listed is a parent process or child
process using the necessary system calls.
c. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Using the appropriate UNIX Command check whether the remote host is responding well ornot.
b. Write a Shell program to count the number of vowels in a line of text.
c. Write a C program for implementing Interprocess communication using shared memory
concept.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

a.Using the appropriate UNIX command print the last 10 lines of user specified file to
standard output.
b. Write a shell program to find the sum and average of four integers.
c. Write a C Program for simulating a deadlock detection model.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100

INTERNAL EXAMINER EXTERNAL EXAMINER

You might also like