OS Exam
OS Exam
Code:0505
Sub. Code: 3875
2123
Master of Computer Applications
First Sernester
CS-2114: Operating Systems
Time allowed: 3 Hours Max. Marks: 80
is
NOTE: Atempt five questions in all, including Question No. IX (Unit-V) which
compulsory and selecting one question each from Unit i-IV.
I-X-X
UNIT -I
a) List five services provided by an operating system. Explain how each provides
convenience to the users. Explain also in which cases it would be impossible for user
II. a) What do you mean be process in a computer system? What are the different process
IV. a) Consider u paging hardwie wit: a TLB. As Ur:e that the entire page table and all the
pages are in the physical memory. It takes 10milliseconds to search the TLB and 80
milliseconds to access the physical nemory. If the TLB hit ratio is 0.6, compute the
effective memory access time (in milliseconds).
b) Consider a demand paging system with four page frames (initiaily epty) and LkU
page replacement policy. Compute the page fault rate (defined as the ratio of number
of page faults to the number of memory accesses) for the page reference string:
7,2, 7, 3, 2, 5, 3, 4, 6, 7, 7, 1, 5, 6, 1. (2x8)
P.T.O.
Sub. Code: 3875
(2)
UNIT -III
ss is Linux shell different from Linux kernel? Elaborate the salient features of
V.
Bourne Again Shell(BASH).
L le an ext2 Linux file system, an inode consists ot 12 Direct Disk Block Addresses
(DBA), 1 single indirect DBA, 1doubly indirect DBA and 1 triple jndirect DBA The
DBArequires 32 bits and the Disk block size is 1KB. Then what is the maximum file
size possible? (2x8)
VI. a) Write a Bourne shell script that prints the name and size of all files in the current
directory that are larger than bytes, where x is a command line argument. For
example. if the progran is saved to afile called "bigfiles, and we run it is "bigfiles
4096", then it will list all files larger than 4096 bytes.
b) Write a shel script that reads the input file, translates all the characters in the input file
into the uppercase, and then stores the results in the specified output file. Synopsis:
upper -i infile -o outfile. (2x8)
UNIT -IV
VII. What is Operating system administration? Explain the role and functions of a system
administrator in Linux. As a Linux administrator, how do you (i) administer user and
group accounts (ii) perform backup and restore operations. Explain with examples. (16)
VIII. a) Write a 'C' programn to create a child process as that it can generate Fibonacci
sequence using command line arguments i.e. the number of the sequence will be
provided in the command line. Make sure that parent process waits for the child to
execute first.
b) For cach of the following pairs of terms, define each term, making sure to clarify the
key difference(s) between the two terms:
i)signal() and kill()
ii) read) and writer() (2x8)
UNIT - V
IX. Attempt the following: