problem 1) Describe three main purposes of the operating system? What is layered approach to OS design? Also, describe its advantages and disadvantages.
problem 2) prepare a shell program to generate first 25 prime numbers.
problem 3) What is ‘Mutual Exclusion’? prepare pseudo code to implement mutual exclusion using:
(i) Test and Set instruction and
(ii) Swap instruction
problem 4: Consider the following set of processes:
Process Burst time (ms)
Evaluate the performance of FCFS, SJF and RR (Quantum = 10 ms) algorithms for scheduling the above processes.
problem 5) prepare the shell program to cipher all text/content in any text document in present working directory and also utilize another shell program to decipher it to read. Use any scheme for ciphering.
problem 6) prepare UNIX commands for the following tasks:
• find lines common to two or more files
• compare files but stops at first occurrence of a difference
• show differences of two files
• list all jobs in the waiting queue.