Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
OPERATING SYSTEM CONEPTS AND PRACTISE ASSIGNMENT 1 (10%) DUE DATE: 18-02-2014 Total: 10 marks Each question carries 1 mark. 1. Define an operating system. Explain two viewpoints of OS role. 2. What are Operating System operations? Explain? 3. Explain IPC mechanism. What are the different methods used for logical implementation of message passing system? Explain one of them. 4. Discuss three common ways of establishing relationship between the user and kernel thread? 5. What is a process? Draw and explain the process state diagram. 6. Write and explain the sequence of system calls for copying a file to another (new) file. 7. What is multithreading? Explain the benefits of multithreaded programming? 8. Consider the following set of process. Process Burst Time P1 6 P2 3 P3 8 P4 1 a. Draw Gantt charts that illustrates the execution of these process using first come first serve (FCFS), and Shortest Job first (SJF). b. Calculate the average waiting time for each scheduling algorithm. 9. Draw Gantt charts that illustrate the execution of these processes given below using Shortest Job First (SJF) preemptive and non-preemptive. Process Arrival time Burst Time P1 0.0 7 P2 2.0 4 P3 4.0 1 P4 5.0 3 a. Calculate the average waiting time for each algorithm and compare the performance. b. Using the above process draw Gantt chart and illustrate the execution of priority scheduling, Assume the burst time to be the Priority time and solve the algorithm. 10. Draw Gantt charts that illustrate the execution of these processes using Round robin scheduling algorithm (RR) and calculate the average waiting time. Time quantum=3 milliseconds Process Arrival time Burst Time P1 0 5 P2 1 3 P3 2 8 P4 3 6