Sie sind auf Seite 1von 2

1a)Simulate the FCFS CPU scheduling algorithm.

1b)Study of Unix/Linux general purpose utility commands.


man, who, cat, cd, cp, ps, ls, mv, rm, mkdir, rmdir.

2a)Simulate the SJF CPU scheduling algorithm.


2b) Study of Unix/Linux general purpose utility commands.
echo, more, date, time, kill, history, chmod, chown, finger, pwd, cal, logout, shutdown.

3a)Simulate the Priority CPU scheduling algorithm.


3b)Use the vi command to correct any errors in the file, my table.
3c)Use the sort command to sort the file my table according to the first field. Call the sorted file
my table (same name).
3d)Print the file my table.

4)a)Simulate the Round Robin CPU scheduling algorithm.


4b) Study of Unix/Linux general purpose utility commands.
man, who, cat, cd, cp, ps, ls, mv, rm, mkdir, rmdir.

5a) Simulate Bankers Algorithm for Dead Lock Avoidance.


5b)Write a shell script that takes a command –line argument and reports on whether it is
directory, a file or something else.

6a)Simulate the FIFO page replacement algorithm.


6b)Write a shell script that computes the gross salary of a employee according to the following
rules: i) If basic salary is < 1500 then HRA =10% of the basic and DA =90% of the basic. ii) If basic
salary is >=1500 then HRA =Rs500 and DA=98% of the basic .The basic salary is entered
interactively through the key board.

7a)Simulate the Multiprogramming with a fixed number of tasks (MFT).


7b)Write a shell script that accepts two integers as its arguments and computes the value of
first number raised to the power of the second number.

8a)Simulate the Multiprogramming with a variable number of tasks (MVT).


8b)Write a shell script that accepts a file name starting and ending line numbers as arguments
and displays all the lines between the given line numbers.
9a)Simulate the Sequenced File allocation strategies.
9b)Write an interactive file-handling shell program. Let it offer the user the choice of copying,
removing, renaming, or linking files. Once the user has made a choice, have the program ask
the user for the necessary information, such as the file name, new name and so on.

10a)Simulate the Indexed File allocation strategies.


10b)Write a shell script that determines the period for which a specified user is working on the
system.

11a)Simulate the Linked File allocation strategies.


11b)Write shell script that takes a login name as command – line argument and reports when
that person logs in.

12a)Write a shell script which receives two file names as arguments. It should check whether
the two file contents are same or not. If they are same then second file should be deleted.
12b)Write a shell script that accepts one or more file name as arguments and converts all of
them to uppercase provided they exist in the current directory.

Das könnte Ihnen auch gefallen