QUESTION BANK UNIT I

Similar documents
SNS COLLEGE OF ENGINEERING

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK

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

Operating System(16MCA24)

MC7204 OPERATING SYSTEMS

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

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

Chendu College of Engineering & Technology

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING

CHAPTER NO - 1 : Introduction:

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

UNIT I PROCESSES AND THREADS

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


ROEVER ENGINEERING COLLEGE, PERAMBALUR DEPARTMENT OF INFORMATION TECHNOLOGY OPERATING SYSTEMS QUESTION BANK UNIT-I

CSI3131 Final Exam Review

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

PESIT SOUTHCAMPUS. Question Bank

Main Points of the Computer Organization and System Software Module


CSE 4/521 Introduction to Operating Systems. Lecture 27 (Final Exam Review) Summer 2018

COMP 3361: Operating Systems 1 Final Exam Winter 2009

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

CS6401- Operating System QUESTION BANK UNIT-IV

CS6401- OPERATING SYSTEM

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

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

Exam Guide COMPSCI 386

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

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

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

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

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

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

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

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

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

I/O Management and Disk Scheduling. Chapter 11

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

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

MARUTHI SCHOOL OF BANKING (MSB)

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

Indian Institute of Technology, Kharagpur

Fall COMP3511 Review

Final Exam Preparation Questions

Prepared by Heena Patel(Asst. Prof) Page 1

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

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.

OPERATING SYSTEMS. COMS W1001 Introduction to Information Science. Boyi Xie

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

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012

Institute of Engineering & Management. Course:CS603- Operating System. Course pre-requisites

b. How many bits are there in the physical address?

ANNAI MATHAMMAL SHEELA ENGINEERING COLLEGE DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK CS6401 OPERATING SYSTEMS

LECTURE 3:CPU SCHEDULING

CSE 153 Design of Operating Systems

St. Joseph College of Engineering

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

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

3 rd Year V Semester

Following are a few basic questions that cover the essentials of OS:

Q 1. (10 Points) Assume that a process executes the following pseudo codes:

VALLIAMMAI ENGINEERING COLLEGE

(MCQZ-CS604 Operating Systems)

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

Midterm Exam. October 20th, Thursday NSC

Contents. 1.1 What Operating Systems Do Computer-System Organization Computer-System Architecture 12. Operating-System Structures

Student Name:.. Student ID... Course Code: CSC 227 Course Title: Semester: Fall Exercises Cover Sheet:

Properties of Processes

Operating System MC Exercises

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

OPERATING SYSTEMS CS3502 Spring Processor Scheduling. Chapter 5

CONTENTS. Computer-System Structures

CS370 Operating Systems

III B.Sc[IT] [ ] Semester V Core:Operating systems - 512C Multiple Choice Questions.

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

CHAPTER 2: PROCESS MANAGEMENT

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

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

CS370 Operating Systems

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

Solution for Operating System

Ref: Chap 12. Secondary Storage and I/O Systems. Applied Operating System Concepts 12.1

Virtual Memory Outline

Fundamentals of Operating Systems (COMP355/L) A Student's Manual for Practice Exercises

Chapter 6: CPU Scheduling

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

SNS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Course Syllabus. Operating Systems

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

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

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13

Lecture 9: Midterm Review

UNIT:2. Process Management

Chapter 9: Virtual Memory. Operating System Concepts 9 th Edition

COMP 3361: Operating Systems 1 Midterm Winter 2009

COMP SCI 3SH3: Operating System Concepts (Term 2 Winter 2006) Test 2 February 27, 2006; Time: 50 Minutes ;. Questions Instructor: Dr.

Transcription:

QUESTION BANK Subject Name: Operating Systems UNIT I 1) Differentiate between tightly coupled systems and loosely coupled systems. 2) Define OS 3) What are the differences between Batch OS and Multiprogramming? 4) What are the differences between Multitasking and Multiprogramming? 5) What are the differences between SMP and ASMP? 6) What is Clustered System? 7) What is Real Time System? List out their types. 8) Is Os a resource Manager? If so justify your answer 9) What is the kernel? 10) What are the three main purposes of an operating system? 11) List the four steps that are necessary to run a program on a completely dedicated machine. 12) What are batch systems? 13) What are privileged instructions? 14) What do you mean by system calls? 15) What is process control block? 16) What are schedulers? 17) What is co-operative process? 18) What are the use of job queues, ready queues and device queues? 19) State the advantage of multiprocessor system. 20) What is the main advantage of multiprogramming? 21) What is the use of inter process communication. 22) What is meant by context switch? 23) What is independent process? 24) What are the benefits of co-operating processes? 25) How can a user program disturb the normal operation of the system? 26) What are the three major activities of an operating system in regard to Secondary- storage management? 27) What is a thread? 28) What are the benefits of multithreaded programming? 29) Compare user threads and kernel threads. 30) What is the use of fork and exec system calls? 31) Define thread cancellation & target thread. 32) What are the different ways in which a thread can be cancelled? 1. Explain the various types of computer systems. 2. Explain how protection is provided for the hardware resources by the operating system. 3. What are the system components of an operating system and explain them? 4. What are the various process scheduling concepts?

5. Explain about inter process communication. 6. 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 userlevel programs to provide these services. 7. Explain the System Structure of Operating System 8. Explain the concept of Virtual Machine with neat sketch 9. Explain Client-Server communication with an example 10. Explain the various threading issues? UNIT-II 1. Define CPU scheduling. 2. What is preemptive and non preemptive scheduling? 3. What is a Dispatcher? 4. What is dispatch latency? 5. What are the various scheduling criteria for CPU scheduling? 6. Define throughput. 7. What is turnaround time? 8. Define race condition. 9. What is critical section problem? 10. What are the requirements that a solution to the critical section problem must satisfy? 11. Define entry section and exit section. 12. Give two hardware instructions and their definitions which can be used for implementing mutual exclusion. 13. What is a semaphore? 14. Define busy waiting and spin lock. 15. Define deadlock. 16. What is the sequence in which resources may be utilized? 17. What are conditions under which a deadlock situation may arise? 18. What is a resource-allocation graph? 19. Define request edge and assignment edge. 20. What are the methods for handling deadlocks? 21. Define deadlock prevention. 22. Define deadlock avoidance. 23. What are a safe state and an unsafe state? 24. What is banker s algorithm?. 1. Write about the various CPU scheduling algorithms. 2. What is critical section problem and explain two process solutions and multiple process solutions? 3. Explain what semaphores are, their usage, implementation given to avoid busy waiting and binary semaphores. 4. Explain about critical regions and monitors 5. Explain the various classic problems of synchronization 6. Write note on TSL and SWAP instruction 7. Give a detailed description about deadlocks and its characterization

8. Explain about the methods used to prevent deadlocks 9. Explain the Banker s algorithm for deadlock avoidance. 10. Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority 1. P1 10 3 2. P2 1 1 3. P3 2 3 4. P4 1 4 5. 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. (4) b. What is the turnaround time of each process for each of the scheduling algorithms in part a? (4) c. What is the waiting time of each process for each of the scheduling algorithms in Part a? (4) d. Which of the schedules in part a results in the minimal average waiting time (over all processes)? (4) UNIT III 1. Define logical address and physical address. 2. What is logical address space and physical address space? 3. What is the main function of the memory-management unit? 4. Define dynamic loading. 5. Define dynamic linking. 6. What are overlays? 7. Define swapping. 8. What are the common strategies to select a free hole from a set of available holes? 9. What do you mean by best fit and worst fit? 10. What do you mean by first fit? 11. What is virtual memory? 12. What is Demand paging? 13. Define lazy swapper. 14. What is a pure demand paging? 15. Define effective access time. 16. Define secondary memory. 17. What is the basic approach of page replacement? 18. What are the various page replacement algorithms used for page replacement? 19. What are the major problems to implement demand paging? 20. What is a reference string?

. 1. Explain about contiguous memory allocation. 2. Give the basic concepts about paging. 3. Explain about the techniques for structuring the page table. 4. Explain the basic concepts of segmentation 5. Consider the following snapshot of a system: Process Allocation Max Available A B C D A B C D A B C D P0 0 0 1 2 0 0 1 2 1 5 2 0 P1 1 0 0 0 1 7 5 0 P2 1 3 5 4 2 3 5 6 P3 0 6 3 2 0 6 5 2 P4 0 0 1 4 0 6 5 6 Answer the following questions using the banker s algorithm: a. What is the content of the matrix Need? Is the system in a safe state? (8) b. If a request from process P1 arrives for (0, 4, 2, 0), can the request be granted immediately? (8) 6. Explain the various page replacement strategies. 7. 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 one, two, three, four, five, six, or seven frames? Remember all frames are initially empty, so your first unique pages will all cost one fault each. LRU replacement FIFO replacement Optimal replacement 8. A page-replacement algorithm should minimize the number of page faults. We can do this minimization by distributing heavily used pages evenly over all of memory, rather than having them compete for a small number of page frames. We can associate with each page frame a counter of the number of pages that are associated with that frame. Then, to replace a page, we search for the page frame with the smallest counter. a. Define a page-replacement algorithm using this basic idea. Specifically address the problems of (1) what the initial value of the counters is, (2) when counters are increased, (3) when counters are decreased, and (4) how the page to be replaced is selected. (8) b. How many page faults occur for your algorithm for the following reference string, for four page frames? 1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2. (4) c. What is the minimum number of page faults for an optimal page-replacement strategy for the reference string in part b with four page frames? (4) 9. Explain Memory Management in LINUX UNIT- IV

1. What is File system? 2. What are the various layers of a file system? 3. What are the attributes of a file? 4. What are the various file operations? 5. List any four types of file 6. What are the structures used in file-system implementation? 7. What are the functions of virtual file system (VFS)? 8. Define seek time and latency time. 9. What are the allocation methods of a disk space? 10. What are the advantages of Contiguous allocation? 11. What are the drawbacks of contiguous allocation of disk space? 12. What are the advantages of Linked allocation? 13. What are the disadvantages of linked allocation? 14. What are the advantages of Indexed allocation? 15. How can the index blocks be implemented in the indexed allocation scheme? 16. What are the various file operations? 17 What is the information associated with an open file? 18 What are the different accessing methods of a file? 19 What is Directory? 20 What are the operations that can be performed on a directory? 21 What are the most common schemes for defining the logical structure of a directory? 21 Define UFD and MFD. 22 What is a path name? 23 What is cache? How it improves the performance of the system? 24 What is log? What is its use? 25 What is full and incremental backup? 1. What are files and explain the access methods for files? 2. Explain File system implementation 3. Explain the various Directory structures 4. Write notes about the protection strategies provided for files 5. Explain the various File allocation methods 6. Write note on (i) Log structured file system (ii) Efficiency and Usage of disk space (iii) File system mounting 7. Explain Linux File system UNIT V 1. What are the registers of I/O Port? 2. What is polling? 3. What are the various I/O data transfer schemes? 4. Is programmed I/O efficient than Interrupt driven I/O? If yes justify your answer? 5. What are the advantages of DMA?

6. What are the responsibilities of DMA Controller? 7. Define seek time and latency time. 8. What are the characteristics of I/O device? 9. What are the differences between blocking I/O and non-blocking I/O? 10. What are the I/O services provided by Kernel? 11. What is double buffering?? 12. Define caching. 13. Define spooling. 14. What are the various disk-scheduling algorithms? 15. What is low-level formatting? 16. What is the use of boot block? 17. What is sector sparing? 18. What is constant angular velocity? 19. What is a stream? 20. What is swap space? What is its use? 21. What is RAID? List out its advantages 22. What is mirroring? 23. Give some examples for tertiary storage 24. Differentiate Scan Vs C-Scan and Look Vs C-Look 1. Write about the kernel I/O subsystem. 2. Explain the various disk scheduling techniques 3. Write notes about disk management and swap-space management. 4. Suppose that a disk drive has 5000 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 diskarm moves to satisfy all the pending requests, for each of the following disk scheduling a. FCFS b. SSTF c. SCAN d. LOOK e. C-SCAN 5. 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 that 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? 5. Explain Disk management in detail 6. Explain the various I/O data transfer schemes 7. Explain the various application I/O interface 8. Write note on (i) Disk attachment (ii) Streams (iii) Tertiary Storage 9. What is RAID? Explain its various levels