Department of Computer applications. [Part I: Medium Answer Type Questions]

Similar documents
QUESTION BANK UNIT I

MC7204 OPERATING SYSTEMS

SNS COLLEGE OF ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

CHAPTER NO - 1 : Introduction:

CLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS UNIT I OPERATING SYSTEMS OVERVIEW

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

Operating System(16MCA24)

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad COMPUTER SCIENCE AND ENGINEERING QUESTION BANK OPERATING SYSTEMS

PESIT SOUTHCAMPUS. Question Bank

Chendu College of Engineering & Technology

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING

Operating Systems Comprehensive Exam. Spring Student ID # 3/16/2006

CSE 421/521 - Operating Systems Fall Lecture - XXV. Final Review. University at Buffalo

CSI3131 Final Exam Review

CHAPTER 2: PROCESS MANAGEMENT

Department of Information Technology Operating Systems Question Bank YEAR/SEM:III/V

Operating Systems Comprehensive Exam. Spring Student ID # 3/20/2013

Operating Systems Comprehensive Exam. Spring Student ID # 2/17/2011

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.

Exam Guide COMPSCI 386

Techno India Batanagar Department of Computer Science & Engineering. Model Questions. Multiple Choice Questions:

Chapter 6: CPU Scheduling

Operating Systems Comprehensive Exam. Fall Student ID # 10/31/2013

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK

B. V. Patel Institute of Business Management, Computer &Information Technology, UTU

1. Draw and explain program flow of control without and with interrupts. [16]

CS370 Operating Systems

Main Points of the Computer Organization and System Software Module

CSE 153 Design of Operating Systems

ALL the assignments (A1, A2, A3) and Projects (P0, P1, P2) we have done so far.

COMP 3361: Operating Systems 1 Final Exam Winter 2009

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Midterm Exam. October 20th, Thursday NSC

Operating Systems: Quiz2 December 15, Class: No. Name:

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

MARUTHI SCHOOL OF BANKING (MSB)

( D ) 4. Which is not able to solve the race condition? (A) Test and Set Lock (B) Semaphore (C) Monitor (D) Shared memory

Lecture 2 Process Management

Review. Preview. Three Level Scheduler. Scheduler. Process behavior. Effective CPU Scheduler is essential. Process Scheduling

Properties of Processes

Maximum CPU utilization obtained with multiprogramming. CPU I/O Burst Cycle Process execution consists of a cycle of CPU execution and I/O wait

King Fahd University of Petroleum and Minerals. Write clearly, precisely, and briefly!!

Department of CSIT ( G G University, Bilaspur ) Model Answer 2013 (Even Semester) - AR-7307

CPU Scheduling. Rab Nawaz Jadoon. Assistant Professor DCS. Pakistan. COMSATS, Lahore. Department of Computer Science

OPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:

1. Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.

CS 571 Operating Systems. Midterm Review. Angelos Stavrou, George Mason University

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Operating Systems (1DT020 & 1TT802)

Chapter 5: CPU Scheduling

( B ) 4. Which is not able to solve the race condition? (A) Test and Set Lock (B) Shared memory (C) Semaphore (D) Monitor

(MCQZ-CS604 Operating Systems)

Assignment 3 (Due date: Thursday, 10/15/2009, in class) Part One: Provide brief answers to the following Chapter Exercises questions:

OPERATING SYSTEMS FINAL EXAMINATION APRIL 30, 2006 ANSWER ALL OF THE QUESTIONS BELOW.

Lecture 5 / Chapter 6 (CPU Scheduling) Basic Concepts. Scheduling Criteria Scheduling Algorithms

CPU Scheduling. CSE 2431: Introduction to Operating Systems Reading: Chapter 6, [OSC] (except Sections )

LECTURE 3:CPU SCHEDULING


Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

CS370 Operating Systems

Subject Teacher: Prof. Sheela Bankar

Lecture 17: Threads and Scheduling. Thursday, 05 Nov 2009

Architectural Support. Processes. OS Structure. Threads. Scheduling. CSE 451: Operating Systems Spring Module 28 Course Review

CIS 21 Final Study Guide. Final covers ch. 1-20, except for 17. Need to know:

Practice Exercises 305

CPU Scheduling Algorithms

Course Syllabus. Operating Systems

Chapter 5 CPU scheduling

CS 318 Principles of Operating Systems

CPU Scheduling. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

CMPS 111 Spring 2003 Midterm Exam May 8, Name: ID:

Chapter 5: CPU Scheduling

CPU Scheduling: Objectives

TDIU25: Operating Systems II. Processes, Threads and Scheduling

CS3733: Operating Systems

Processes The Process Model. Chapter 2. Processes and Threads. Process Termination. Process Creation

Chapter 2 Processes and Threads

PROCESSES & THREADS. Charles Abzug, Ph.D. Department of Computer Science James Madison University Harrisonburg, VA Charles Abzug

Lecture 9: Midterm Review

CISC 7310X. C05: CPU Scheduling. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 3/1/2018 CUNY Brooklyn College

Today: Protection! Protection!

Unit 3 : Process Management

UNIT 2 Basic Concepts of CPU Scheduling. UNIT -02/Lecture 01

Sample Questions. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

OPERATING SYSTEMS CS3502 Spring Processor Scheduling. Chapter 5

CSC 716 Advanced Operating System Fall 2007 Exam 1. Answer all the questions. The maximum credit for each question is as shown.


OS 1 st Exam Name Solution St # (Q1) (19 points) True/False. Circle the appropriate choice (there are no trick questions).

UNIT I. Introduction to OS& System Structures

CPU Scheduling. Daniel Mosse. (Most slides are from Sherif Khattab and Silberschatz, Galvin and Gagne 2013)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Operating System Third Year CSE( Sem:I) 2 marks Questions and Answers UNIT I

(b) External fragmentation can happen in a virtual memory paging system.

OS Assignment II. The process of executing multiple threads simultaneously is known as multithreading.

DEPT OF INFORMATION TECHNOLOGY OPERATING SYSTEMS IT204 / CS202

Course Description: This course includes the basic concepts of operating system

Operating System MC Exercises

CPU Scheduling. Basic Concepts. Histogram of CPU-burst Times. Dispatcher. CPU Scheduler. Alternating Sequence of CPU and I/O Bursts

OPERATING SYSTEMS. Sharafat Ibn Mollah Mosharraf TOUCH-N-PASS EXAM CRAM GUIDE SERIES. Students. Special Edition for CSEDU

Transcription:

Department of Computer applications BBDNITM, Lucknow MCA 311: OPERATING SYSTEM [Part I: Medium Answer Type Questions] UNIT 1 Q1. What do you mean by an Operating System? What are the main functions of an Operating System? Q2. Discuss a Brief comparison among Batch Processing, Multiprogramming, Time Sharing, Real Time and Distributed Operating System.. Q3. What do you mean by spooling? How it is different from buffering? Q4. Discuss five major activities of an operating system in regard to process management. Q5. Discuss three major activities of an operating system with respect to file management. Q6. What do you mean by Device Drivers and Device Controller? Explain their importance.. Q7. How virtual machines are useful in designing a system? Q8. What are interrupts? Explain their significance. Also discuss the differences between Trap & Interrupts Q9. Why system calls are important in an interactive system? What is the use of fork and exec system calls? Q10. Explain how protection is provided for the hardware resources by the operating system.. Q11. What do you mean by Layered approach of Operating system structure? Give an example where it is implemented. Q12. Discuss the Operating System structure of Unix & DOS UNIT 2 Q1. Define the term Process. A process is a passive entity. Give your views about the statement with justification of your answer. Q2. Briefly describe the various states a process can have? Also discuss the state transition diagram. Q3. Write a short note on Process Control Block (PCB) by explaining its utility in process management. Q4. List at least 4 reasons for process termination. Also discuss the need for the suspend state? Q5. Explain when a transition from Blocked state to Blocked/Suspend state occurs and vice versa. Also explain when a transition does from Ready state to Ready/Suspend state Q6. What are schedulers? Discuss the various types of schedulers? Q7. Briefly discuss the criteria for CPU scheduling. Differentiate preemptive and non preemptive scheduling. What is dispatcher? Question Bank of MCA311: Operating System Page 1/6

Q8. Explain following scheduling algorithms with the help of examples along with their advantages & disadvantages: a) First Come First Served (FCFS) b) Shortest Job First(SJF) c) Priority Scheduling d) Round Robin Scheduling e) Multilevel Feedback Queue Scheduling f) Q9. Arrival Time Execution Time P1 0 8 P2 0.4 4 P3 1 1 Find Average Wait Time and Turnaround Time in FCFS, preemptive and nonpreemptive SJF Scheduling. Q10.. Arrival Time Execution Time P1 0 7 P2 2 4 P3 4 1 P4 5 4 Find Wait Time and Turnaround Time in a) Preemptive and non-preemptive SJF Scheduling b) Round Robin Scheduling with Time Quantum=3 Q11. Explain in detail the single thread and multithread process model with diagrams. Q12 Compare user level and kernel level threads with necessary diagrams. UNIT 3 Q1. What is race condition? How process synchronization is helpful to guard against race condition? Q2. what are the requirements to solve the critical section problem? Q3. Discuss bakery algorithm for multiple process solutions. Q4. How special hardware instructions are useful in solving the critical section problem in multiprocessor environment? Q5. What are Semaphores? How they are used in process synchronization? Q6. Discuss Bounded Buffer problem of process synchronization. Q7. Write short notes on the following: (i) Critical Region (ii) Monitors Q8. What is deadlock? Give necessary conditions which can arise deadlock situation in a system. Q9. Explain the following in terms of deadlock avoidance: (i) Safe-state (ii) Resource-Allocation graph algorithm Q10. What is the difference among the dead lock avoidance, prevention and detection? Q11. Discuss mutual exclusion and hold and wait conditions in context to deadlock prevention. Q12. How Deadlock can be detected If each resource has single instance and many instances? Question Bank of MCA311: Operating System Page 2/6

UNIT 4 Q1. What do you mean by address binding? Differentiate logical address and physical address. With an example, explain overlays. Q2. What is swapping in memory management? Why address binding is used in swapping? Q3. Briefly describe first fit, best fit and worse fit strategies in terms of memory allocation scheme. Which scheme should be used when by explaining their advantages & disadvantages Q4. What is the role of paging in memory management scheme? Q5. Why are segmentation and paging sometimes combined into one scheme? Q6. Write short notes on the following: (i) Virtual Memory (ii) Demand Paging Q7. Consider a logical address space of 8 pages of 1024 words mapped onto a physical memory of 32 frames. a) How many bits are in the logical address b) How many bits are in the physical address Q8. Consider the following page reference string: 1,2,3,4,2,1,5,6,2,1,2,3,7,6 How many page fault would occur for LRU page replacement algorithm assuming 3 frames? Q9. Consider the following page reference string: 1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1 How many page faults would occur for FIFO page replacement algorithm assuming 4 frames? Q10. What is the difference between indexed and indexed sequential file? Q11. Compare the performance of C-SCAN and SCAN scheduling, assuming a uniform distribution of requests. Consider the average response time (the time between the arrival of a request and the completion of the request s service), the variation in response time, and the effective bandwidth. How does performance depend on the relative sizes of seek time and rotational latency? Q12. What are the various file allocation methods? Explain in detail? UNIT 5 Q1. Briefly describe the goals of protection in an operating system. Q2. What is the role of access matrix? Q3. Discuss the schemes used to implement revocation for capabilities. Q4. State the advantages of language based Protection approach in an operating system. Q5. Discuss the levels of security measures for protecting the system. Q6. Write short notes on the following: (i) Password Vulnerabilities (ii) One-Time Passwords Q7. Discuss common program threats. Q8. Briefly describe worms and viruses in terms of system threats. Q9. Give a short note on Signature based detection and anomaly detection. Q10. Briefly describe system call monitoring. Q11. What is encryption? Briefly discuss the various encryption techniques for data security. Q12. Discuss the process management in Linux along with the system calls used. Question Bank of MCA311: Operating System Page 3/6

[Part II: Long Answer Type Questions] UNIT 1 Q1. Explain symmetric multiprocessing architecture. Describe differences Between symmetric and asymmetric multiprocessing. Q2. Define the essential properties of the following operating systems: a) Batch System b)time sharing c)real time d)distributed e)multiprogramming f) Parallel Q3. Explain in detail how interrupts are processed. Q4. What are the system components of an operating system and explain them? Q5. Explain various types of system calls used in an operating system. Q6. 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 level programs to provide these services.. UNIT 2 Q1. What is the objective of time sharing? Explain scheduling queues in terms of CPU utilization. Q2. Explain the various reasons involved in process creation and termination. Q3. Discuss in detail the various techniques for evaluating CPU algorithms. Q4. Discuss synchronization and buffering of messages in message-passing system. Q5. Discuss in detail different type of multithreading models. Q6 Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority P1 10 3 P2 1 1 P3 2 3 P4 1 4 P5 5 2 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. a) Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF, A non preemptive priority (a smaller priority number implies a higher priority), and RR (quantum = 1) scheduling. b) What is the turnaround time of each process for each of the scheduling algorithms in part a? c) What is the waiting time of each process for each of the scheduling algorithms in Part a? d) Which of the schedules in part a result in the minimal average waiting time (over all processes)? Question Bank of MCA311: Operating System Page 4/6

UNIT 3 Q1. What is critical section problem and explain two process solutions and multiple process solutions? Q2. Explain usage and implementation of Semaphores in process synchronization. Q3. What is the role of critical regions in process synchronization. Explain the solution of dining-philosopher problem by using monitors. Q4. Discuss the Banker s Algorithm for deadlock-avoidance (specify both Safety algorithm and Resource-Request Algorithm). Q5 Consider a system with a total of 150 units of memory, allocated to three processes as shown: Process Max Hold 1 70 45 2 60 40 3 60 15 Apply banker s algorithm to determine it would be safe to grant each of the following requests.if yes, indicate a sequence of terminations that could be guaranteed possible.if no, show the reduction of the resulting allocation table. a)a fourth process arrives with maximum memory need of 60 and initial need of 25 units. b) A fourth process arrives with maximum memory need of 60 and initial need of 35 units. Q6 Consider the following snap shot of a system having 5 processes (P0-P4) and 4 resource types A, B, C,D Allocation Max Available A B C D A B C D A B C D P 0 0 0 1 2 0 0 1 2 1 5 2 0 P 1 1 0 0 0 1 7 5 0 P 2 1 3 5 4 2 3 5 6 P 3 0 6 3 2 0 6 5 2 P 4 0 0 1 4 0 6 5 6 Answer the following questions using Banker s Algorithm:- a) What is the content of matrix Need? b) If a request from P1 arrives for (0, 4, 2, 0), Can the request be granted immediately? Give reasons. UNIT 4 Q1. Explain the importance of memory protection. Discuss internal and external fragmentation. Q2. Explain the principles of combined paging and segmentation scheme. Q3 Consider the following segment table: segment base length 0 219 600 1 2300 14 2 90 100 3 1327 580 4 1952 96 Question Bank of MCA311: Operating System Page 5/6

What are the physical addresses for the following logical addresses? a) 0, 430 b) 1, 10 c) 2, 500 d) 3, 400 e) 4, 112 Q4. Explain the schemes for defining the logical structure of a directory. Q5. Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6. How many page faults would occur for the following replacement algorithms, assuming five frames? Remember all frames are initially empty, first unique pages will all cost one fault each. LRU replacement FIFO replacement Optimal replacement Q6. Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending requests, in FIFO order, is 86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following diskscheduling algorithms? a) FCFS b) SSTF c) SCAN d) LOCK e) C-SCAN f) C-LOOK UNIT 5 Q1. Explain domain of protection in an operating system. Q2. Discuss the importance of language-based protection system. Describe compiler based enforcement under language based protection scheme. Q3. Describe various types of user authentication techniques. Q4. Discuss memory management and File system under Linux Operating system.. Q5. Multithreading is a commonly used programming technique. Describe three different ways that threads could be implemented. Explain how these ways compare to the Linux clone mechanism. when might each alternative mechanism be better or worse than using clones? Q6. Write short notes on the following in context to windows NT system: (i) Win 32 Environment (ii) Internal layout of file system (iii) Name resolution in TCP/IP Networks (iv) Interprocess Communication Question Bank of MCA311: Operating System Page 6/6