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

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

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

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

COMP 3361: Operating Systems 1 Midterm Winter 2009

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

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

MC7204 OPERATING SYSTEMS

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

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

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

SNS COLLEGE OF ENGINEERING

Operating Systems (1DT020 & 1TT802)

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

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

8: Scheduling. Scheduling. Mark Handley

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

CS630 Operating System Design Second Exam, Spring 2015,

CS4411 Intro. to Operating Systems Exam 2 Fall 2009

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

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

CS630 Operating System Design, Second Exam, Fall 2014

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

Operating System Review Part

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

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

CMPSCI 377: Operating Systems Exam 1: Processes, Threads, CPU Scheduling and Synchronization. October 9, 2002

COMP 3361: Operating Systems 1 Final Exam Winter 2009

Chendu College of Engineering & Technology

Midterm Exam Solutions Amy Murphy 28 February 2001

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

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

INSTITUTE OF AERONAUTICAL ENGINEERING

PESIT SOUTHCAMPUS. Question Bank

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

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

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

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

CHAPTER NO - 1 : Introduction:

CHAPTER 2: PROCESS MANAGEMENT

CS4411 Intro. to Operating Systems Final Fall points 12 pages

CS 322 Operating Systems Practice Midterm Questions

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

Exam Guide COMPSCI 386

Scheduling. Scheduling. Scheduling. Scheduling Criteria. Priorities. Scheduling

CS4411 Intro. to Operating Systems Final Fall points 10 pages

SAMPLE MIDTERM QUESTIONS

Midterm Exam. October 20th, Thursday NSC

QUESTION BANK UNIT I

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

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

FCM 710: Architecture of Secure Operating Systems

Chapter 2 Processes and Threads. Interprocess Communication Race Conditions

Operating Systems (Classroom Practice Booklet Solutions)

Lecture 9: Midterm Review

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

Course Syllabus. Operating Systems

Lecture 2 Process Management

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

CSE 153 Design of Operating Systems

COSC243 Part 2: Operating Systems

University of Waterloo Midterm Examination Model Solution CS350 Operating Systems

CS 370 Operating Systems

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

CSE 120 Principles of Computer Operating Systems Fall Quarter, 2001 Midterm Exam. Instructor: Geoffrey M. Voelker

CSE 120 Principles of Computer Operating Systems Fall Quarter, 2002 Halloween Midterm Exam. Instructor: Geoffrey M. Voelker

Lecture Topics. Announcements. Today: Uniprocessor Scheduling (Stallings, chapter ) Next: Advanced Scheduling (Stallings, chapter

Scheduling of processes

CS153: Midterm (Fall 16)


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

GATE SOLVED PAPER - CS

EECE.4810/EECE.5730: Operating Systems Spring Midterm Exam March 8, Name: Section: EECE.4810 (undergraduate) EECE.

CS-537: Midterm Exam (Spring 2001)

CS3733: Operating Systems

CS630 Operating System Design, First Exam, Spring 2017,

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

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

Chapter 5: CPU Scheduling

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

1.1 CPU I/O Burst Cycle

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

Operating System Concepts Ch. 5: Scheduling

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Today: Protection! Protection!

CS350: Final Exam Review

MARUTHI SCHOOL OF BANKING (MSB)

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

FCM 710: Architecture of Secure Operating Systems

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

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

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

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

Chapter 8 Main Memory

TDDB68 Processprogrammering och operativsystem / Concurrent programming and operating systems

Design of Operating System

CS Operating system Fall Midterm I -- Oct 5, 2017 You have 75 min. Good Luck!

CS604 - Operating System Solved Subjective Midterm Papers For Midterm Exam Preparation

Transcription:

Operating Systems Comprehensive Exam Fall 2013 Student ID # 10/31/2013 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. The working set model for paging is based upon the assumption of. locality fragmentation static linking none of these 3. Given a time-sharing operating system, which of the following would be an advantage of increasing the length of the time quantum? (circle the best answer) shorter response time lower context switching overhead longer turnaround time there is no advantage to doing this 4. Belady's anomaly can affect the performance of the page replacement algorithm. FIFO LRU optimal none of these 5. is commonly used to implement virtual memory. static linking limit register demand paging compaction 6. A process that does not affect, and is not affected by, another process is referred to as: static independent cooperating dynamic unbounded 7. List the three requirements that must be satisfied to implement a valid critical section: 1

8. A UNIX process calls fork() to create a child process as shown: pid = fork(); a) What value will be assigned to pid in the parent process by the call to fork()? the parent s process id the child s process id zero none of these b) What value will be assigned to pid in the child process by the call to fork()? the parent s process id the child s process id zero none of these 9. Is there an error in the following pair of Semaphore operations (assume that S is initially = 1)? wait(s) { while(s > 0); S--; } signal(s) { S++; } Yes No If your answer is yes, briefly explain the error and explain how to correct it: 10. Explain the difference between deadlock avoidance and deadlock prevention: 2

Matching: choose the best answer for questions 11-13 from the list below: A. mutex B. page fault C. thrashing D. atomic E. blocking F. busy waiting 11. This describes the situation when a process spends more time paging than executing. 12. When a process uses a send to deliver a message, it must wait until the receiving process gets the message. 13. This occurs when attempting to access a memory page that is not currently in memory. 14. Memory compaction cannot reduce fragmentation when is used. paging segmentation contiguous allocation 15. What specific term refers to the set of machine instructions that can only be executed while in the system (i.e. supervisor) mode? bounded code privileged instructions monitor instructions static code 16. Which of the following file allocation methods can result in external fragmentation? linked allocation indexed allocation contiguous allocation 17. Regarding memory allocation, explain the difference between paging and segmentation. Include the advantages and disadvantages of each approach and specifically mention the types of fragmentation that can occur with each approach. 3

Section II: You must complete two of the following three problems (A, B, 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 100. Show your work to receive partial credit, otherwise an incorrect answer will get zero points. 65, 132, 147, 93, 72, 111, 121, 35 (a) First-Come, First-Served (b) Shortest Seek Time First (c) 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 600 190 1 220 320 2 950 150 3 480 80 a) [0, 110] physical address? b) [2, 225] physical address? 4

B. Given the following set of processes, answer the questions below. Assume that each new process arrives after the interrupted process has been returned to the ready queue. If two processes arrive at the same time, or have the same remaining burst time, schedule them in process number order. Fill in the following Gantt charts as specified and answer the questions associated with each part. Write the process number of the executing process in the cell for each time unit. 1) First-Come-First-Served (non-preemptive): Process Id Burst Time Arrival Time 1 6 0 2 4 1 3 2 3 4 3 4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Average waiting time = What was the turnaround time for process 2 2) Shortest-job-first (preemptive): 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Average waiting time = Which process had the longest response time 3) Round Robin (time slice (quantum) is 1 time unit): 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Average waiting time = What was the turnaround time for process 4 5

C. Given the following list of page references, in execution order: 1, 2, 3, 4, 5, 1, 2, 4, 3, 2, 3, 4, 5 Given the number of available frames shown in the table below, how many page faults will occur for each of the following page replacement algorithms? (All pages are initially empty.) You must show your work to receive partial credit, otherwise only your answers will count. Algorithm FIFO with 4 frames # of page faults LRU with 4 frames LRU with 3 frames 6