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

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

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

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

MC7204 OPERATING SYSTEMS

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

FCM 710: Architecture of Secure Operating Systems

CS630 Operating System Design, First Exam, Spring 2017,

Operating Systems (1DT020 & 1TT802)

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

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

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

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

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

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

COMP 3361: Operating Systems 1 Final Exam Winter 2009

EECE.4810/EECE.5730: Operating Systems Spring 2017 Homework 3 Solution

CMPS 111 Spring 2013 Prof. Scott A. Brandt Midterm Examination May 6, Name: ID:

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

University of Waterloo Midterm Examination Model Solution CS350 Operating Systems

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

CS4411 Intro. to Operating Systems Exam 2 Fall 2009

Midterm Exam. October 20th, Thursday NSC

CS630 Operating System Design, Second Exam, Fall 2014

COMP 3361: Operating Systems 1 Midterm Winter 2009

SNS COLLEGE OF ENGINEERING

CS630 Operating System Design Second Exam, Spring 2015,

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

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

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

FCM 710: Architecture of Secure Operating Systems

CPU Scheduling: Part I ( 5, SGG) Operating Systems. Autumn CS4023

King Saud University. College of Computer & Information Sciences. Information Technology Department. IT425: Operating Systems.

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

QUESTION BANK UNIT I

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

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


1.1 CPU I/O Burst Cycle

Operating Systems (Classroom Practice Booklet Solutions)

Midterm Exam Amy Murphy 6 March 2002

CHAPTER NO - 1 : Introduction:

Chendu College of Engineering & Technology

Exam Guide COMPSCI 386

CPSC/ECE 3220 Summer 2017 Exam 2

Preview. Process Scheduler. Process Scheduling Algorithms for Batch System. Process Scheduling Algorithms for Interactive System

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

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

So far. Next: scheduling next process from Wait to Run. 1/31/08 CSE 30341: Operating Systems Principles

May 19, Answer pieces in italics were not required to receive full points.

CSE473/Spring st Midterm Exam Tuesday, February 19, 2007 Professor Trent Jaeger

CS350: Final Exam Review

PESIT SOUTHCAMPUS. Question Bank

INSTITUTE OF AERONAUTICAL ENGINEERING

Properties of Processes

CS370 Operating Systems

Memory Management. 3. What two registers can be used to provide a simple form of memory protection? Base register Limit Register

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

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

CS4411 Intro. to Operating Systems Final Fall points 12 pages

CSE 451 Midterm Exam May 13 th, 2009

Example Sheet for Operating Systems I (Part IA)

CS3733: Operating Systems

8: Scheduling. Scheduling. Mark Handley

Two hours. Question ONE is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 25th January 2013 Time: 14:00-16:00

Example Sheet for Operating Systems I (Part IA)

Unit In a time - sharing operating system, when the time slot given to a process is completed, the process goes from the RUNNING state to the

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

Operating Systems EDA092, DIT 400 Exam

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

Question Points Score Total 100

STUDENT NAME: STUDENT ID: Problem 1 Problem 2 Problem 3 Problem 4 Problem 5 Total

CPU Scheduling Algorithms

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

General Objectives: To understand the process management in operating system. Specific Objectives: At the end of the unit you should be able to:

Homework Assignment #5

Operating System Concepts Ch. 5: Scheduling

Final Exam Preparation Questions

CS Mid term Exam Maximum points 100; Maximum time allowed: 75 minutes

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

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

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

GATE SOLVED PAPER - CS

Chapter 6: CPU Scheduling

Design of Operating System

(MCQZ-CS604 Operating Systems)

KEY CENG 334. Midterm. Question 1. Question 2. Question 3. Question 4. Question 5. Question 6. Total. Name, SURNAME and ID

Lecture 9: Midterm Review

OPERATING SYSTEMS CS3502 Spring Processor Scheduling. Chapter 5

Operating Systems Comprehensive Exam. There are five questions on this exam. Please answer any four questions total

Solution for Operating System

OPERATING SYSTEMS ECSE 427/COMP SECTION 01 WEDNESDAY, DECEMBER 7, 2016, 9:00 AM

CS4411 Intro. to Operating Systems Final Fall points 10 pages

Last Class: Deadlocks. Today

Indian Institute of Technology, Kharagpur

CSE 153 Design of Operating Systems

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

Today: Protection. Sermons in Computer Science. Domain Structure. Protection

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

Transcription:

Operating Systems Comprehensive Exam Spring 2011 Student ID # 2/17/2011 You must complete all of Section I You must complete two of the problems in Section II If you need more space to answer a question, use the back of a page and indicate which question is being answered.

Section I: You must complete all problems in this section. 1. When an I/O request is being handled for a user s process, which term refers to the policy of returning control to the user process before the I/O is completed? synchronous I/O asynchronous I/O delayed I/O none of these 2. Which of the following process scheduling algorithms can potentially result in starvation? First-Come, First-Served Round Robin Shortest Job Next none of these 3. Given the following segment table: Calculate the correct physical addresses for the following logical addresses [segment, offset], indicate any addressing errors that occur. Segment Base Length 0 450 170 1 240 110 2 350 100 3 620 180 a) [3, 150] physical address? b) [2, 105] physical address? Matching: choose the best answer for each question from the list below: 4. The term refers to a software-generated interrupt. 5. If a page s is set, the page must be written to disk before it is replaced. 6. provide a programming interface to the services provided by the OS. 7. processes can affect or be affected by the execution of another process. 8. When a process uses a send to deliver a message, it must wait until the receiving process gets the message. 9. The module gives control of the CPU to the process selected by the short-term scheduler. A. mutex B. job scheduler C. cooperating D. limit register E. kernel mode F. privileged instructions G. blocking H. atomic J. dispatcher K. system calls L. invalid bit M. independent N. dirty bit O. asynchronous P. trap 1

10. The working set model for paging is based upon the assumption of. locality fragmentation static linking none of these 11. If a system is in an unsafe state, it is guaranteed that a deadlock will occur. True False Briefly explain your choice, i.e., why is your answer correct? 12. a) Does the following pair of operations correctly implement a Semaphore (assume that S is initially 1)? wait(s) { while(s < 0); S--; } signal(s) { S++; } Yes No If not, briefly explain the error: b) Assuming that the above Semaphore is either correct, or has been corrected, briefly explain two potential problems with (or disadvantages of) using this Semaphore to control access to a critical section. 2

13. A file handle (or file descriptor) is a pointer into the. open file table file control block directory file allocation table 14. List the three requirements that must be satisfied to implement a valid critical section: 15. a) Briefly explain the difference between internal and external fragmentation b) give one example of a file allocation approach that can suffer from internal fragmentation and one example of a file allocation approach that can suffer from external fragmentation 16. Briefly explain the difference between deadlock avoidance and deadlock prevention: 3

Section II: You must complete two of the following three problems (A, B and C). If you complete more than two problems, clearly indicate which two problems you want graded. Otherwise, only the first two attempted problems will be graded. A. Consider the following list of disk access requests, in arrival order. For each disk scheduling algorithm, calculate the number of tracks that the read/write head crosses without stopping. The disk drive has 200 tracks, from 0 to 199, and the read/write head has a starting location of track 45. You must show your work to receive partial credit, without it an incorrect answer gets zero points. 65, 128, 150, 87, 79, 126, 51, 33 (a) First-Come, First-Served (b) Shortest Seek Time First Consider a paging system with the page table stored in memory. (a) If a memory reference takes 10 microseconds, what is the effective memory access time (with no TLB)? microseconds (b) We add a TLB where the time needed to find a page reference in the TLB is 4 microseconds. If the TLB contains 75% of the page references (assume that all TLB misses are still in memory), what is the effective memory access time? microseconds 4

B. Suppose that the following processes arrive for execution at the sequence P1, P2, then P3. Each process will run for the amount of time listed. In answering the questions below, use non-preemptive scheduling, and base all the decisions on the information you have at the time the decision must be made. Assume that all three processes are available at the start. ======================= Process Burst Time -------------------------------------- P1 5 P2 2 P3 4 Justify your answer by drawing the corresponding Gantt chart for each case. (a) What is the average waiting time for these processes using the FCFS scheduling algorithm? (b) What is the average waiting time for these processes using the SJF scheduling algorithm? (c) How many context switches will take place in total when using a Round-robin scheduling with quantum = 2? 5

C. a) Describe Belady's anomaly for page replacement. b) Given the following list of page references, in execution order: 1, 2, 3, 4, 1, 3, 4, 5, 2, 1, 4, 3 Trace the LRU page replacement algorithm with only 3 frames available for pages (All pages are initially empty.) You must show your work to receive full credit. Trace the LRU page replacement algorithm with only 4 frames available for pages (All pages are initially empty.) You must show your work to receive full credit. 6