Announcements. Final Exam. December 10th, Thursday Patrick Taylor Hall. Chapters included in Final. 8.

Similar documents
Final Review. Quiz-5 Solutions. Tevfik Koşar

Distributed Deadlock Detection

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

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

Fall COMP3511 Review

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

MC7204 OPERATING SYSTEMS

CSE 120 Principles of Operating Systems

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

CSI3131 Final Exam Review

Final Exam Preparation Questions

Final Review. Geoffrey M. Voelker. Final mechanics Memory management Paging Page replacement Disk I/O File systems Advanced topics

SNS COLLEGE OF ENGINEERING

Background. Demand Paging. valid-invalid bit. Tevfik Koşar. CSC Operating Systems Spring 2007

QUESTION BANK UNIT I

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

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

COMP 3361: Operating Systems 1 Final Exam Winter 2009

Last Class: Deadlocks. Where we are in the course

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

stack Two-dimensional logical addresses Fixed Allocation Binary Page Table

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

1. a. Show that the four necessary conditions for deadlock indeed hold in this example.

CS4411 Intro. to Operating Systems Final Fall points 10 pages

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

CS4411 Intro. to Operating Systems Final Fall points 12 pages

Virtual Memory - I. Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - XV. University at Buffalo.

Midterm Exam. October 20th, Thursday NSC

Virtual Memory. Chapter 8

Virtual Memory - I. Roadmap. Background. Demand Paging. valid-invalid bit. Tevfik Koşar. CSE 421/521 - Operating Systems Fall 2012

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

Virtual Memory. CSCI 315 Operating Systems Design Department of Computer Science

CSCI 4210 Operating Systems CSCI 6140 Computer Operating Systems Sample Final Exam Questions (document version 1.0) WITH SELECTED SOLUTIONS

CS6401- Operating System QUESTION BANK UNIT-IV

Q1. What is Deadlock? Explain essential conditions for deadlock to occur?

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

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

Operating System(16MCA24)

Syllabus CSCI 405 Operating Systems Fall 2018

CHAPTER NO - 1 : Introduction:

Principles of Operating Systems

CS 143A - Principles of Operating Systems

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

CSc33200: Operating Systems, CS-CCNY, Fall 2003 Jinzhong Niu December 10, Review

Memory: Overview. CS439: Principles of Computer Systems February 26, 2018

This exam paper contains 8 questions (12 pages) Total 100 points. Please put your official name and NOT your assumed name. First Name: Last Name:

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

I/O Management and Disk Scheduling. Chapter 11

Where are we in the course?

Today. Adding Memory Does adding memory always reduce the number of page faults? FIFO: Adding Memory with LRU. Last Class: Demand Paged Virtual Memory

Chapter 8 & Chapter 9 Main Memory & Virtual Memory

Main Points of the Computer Organization and System Software Module

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

CS307 Operating Systems Main Memory

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

Operating Systems. No. 9 ศร ณย อ นทโกส ม Sarun Intakosum

Prepared by Heena Patel(Asst. Prof) Page 1

CSC369 Operating Systems. Spring 2007

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

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

SPOS MODEL ANSWER MAY 2018

SNS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Final Exam April 14, 2007 COSC 3407: Operating Systems

Operating Systems (2INC0) 2017/18

CMPT 300: Operating Systems I Assignment 4

CS370 Operating Systems

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

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Operating Systems Design Exam 2 Review: Fall 2010

Lecture 18 File Systems and their Management and Optimization

Lecture 9. I/O Management and Disk Scheduling Algorithms

Question Points Score Total 100

Chapter 8 Virtual Memory

1. Background. 2. Demand Paging

Overview of Mass Storage Structure

CS307: Operating Systems

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

Module 9: Virtual Memory

Virtual Memory: Page Replacement. CSSE 332 Operating Systems Rose-Hulman Institute of Technology


Operating System Design

Swapping. Operating Systems I. Swapping. Motivation. Paging Implementation. Demand Paging. Active processes use more physical memory than system has

CONTENTS. Computer-System Structures

UNIVERSITY OF NEBRASKA AT OMAHA COURSE SYLLABUS/DESCRIPTION

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

Last Class: Demand Paged Virtual Memory

Chapter 9. Storage Management

SAZ4B/SAE5A Operating System Unit : I - V

PESIT SOUTHCAMPUS. Question Bank

Virtual Memory - II. Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - XVI. University at Buffalo.

4.1 Paging suffers from and Segmentation suffers from. Ans

Operating Systems. Memory Management. Lecture 9 Michael O Boyle

CS370 Operating Systems

Module 9: Virtual Memory

JBIET. Dept of IT. Operating Systems III B.Tech -I Sem. Department of Information Technology

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

CSE 120 Principles of Operating Systems

Chendu College of Engineering & Technology

a. What is a lower bound on the number of page faults? b. What is an upper bound on the number of page faults?

Transcription:

CSC 4103 - Operating Systems Fall 2009 Lecture - XXV Final Review Announcements * You should have received your grades as well as graded papers for: - Homework 1-4 - Quiz 1-3 - Midterm If not, please see me. * Only two quizzes with highest grade out of three will be counted. Tevfik Ko!ar * Project 1 is still being graded, will be announced soon. * Project 2 is due this Saturday @11:59pm. Louisiana State University December 3rd, 2009 1 Final Exam December 10th, Thursday 3:00pm-5:00pm @1112 Patrick Taylor Hall Chapters included in Final Ch. 3.2-3.4 (Processes) Ch. 4.2-4.4 (Threads) Ch. 5.2-5.3 (CPU Scheduling) Ch. 6.5-6.7 (Synchronization) Ch. 7-2-7.6 (Deadlocks) Ch. 8.1-8.6 (Main Memory) Ch. 9.1-9.6 (Virtual Memory) Ch. 11.1-11.5 (File Systems) Ch. 12.1-12.7 (Mass Storage & IO) Ch. 15.1-15.5 (Security) Ch. 18.1,18.2,18.5 (Distr. Coordination) ~ 30% ~ 70% For Pre-Midterm topics 8. Main Memory Ch. 3.2-3.4 (Processes) Ch. 4.2-4.4 (Threads) Ch. 5.2-5.3 (CPU Scheduling) Ch. 6.5-6.7 (Synchronization) Ch. 7-2-7.6 (Deadlocks) Please revise Midterm Review class which is available at: http://www.cct.lsu.edu/~kosar/csc4103/slides/14_midterm_review.pdf Contiguous Allocation Dynamic Allocation Algorithms Fragmentation Address Binding Address Protection Paging Segmentation 5 6

9. Virtual Memory 11. File Systems Demand Paging Page Faults Page Replacement Page Replacement Algorithms (FIFO, LRU, Optimal etc) Performance of Demand Paging Directory structure & implementation File allocation methods contiguous, linked, indexed Free space management bit vectors, linked lists, grouping, counting 7 8 12. Mass Storage & I/O 15. Security Disk Mechanism & Structure Disk Scheduling Algorithms FCFS, SSTF, SCAN, LOOK, C-SCAN, C-LOOK Hierarchical Storage Management RAID Architectures RAID 0-6, RAID 0+1, RAID 1+0 Security Violation Categories Security Violation Methods Program & Network Threats Cryptography Symmetric & Asymmetric Encryption Key distribution 9 10 16. Distributed Coordination Event Ordering Happened before relationship Distributed Mutual Exclusion Centralized & Fully Distributed Approaches Distributed Deadlock Prevention Resource Ordering Timestamp Ordering (Wait-die & Wound-wait) Distributed Deadlock Detection Centralized & Fully Distributed Approaches Exercise Questions 11 12

Question 1-a Question 1-b Consider the following page-reference string: 1, 2, 3, 4, 4, 3, 2, 1, 5, 6, 2, 1, 2, 3, 7, 8, 3, 2, 1, 5 How many page faults, page hits, and page replacements would occur for the following replacement algorithms, assuming 4 memory frames? Show your page assignments to frames. 13 14 Question 2 Question 3 Assume a disk with 500 cylinders is accessing cylinder 100 right now. Prior cylinder 100, the disk head accessed cylinder 101. Further assume that the FIFO queue of pending requests is 102, 20, 450, 60, 80, 220, 330, 250, 101, 190. What order will the pending requests be satisfied using the following scheduling algorithms? (a) Circular Scan disk-scheduling policy? Explain why a bit vector implementation of a free block list can provide increased reliability and performance compared with keeping a list of free blocks where the first few bytes of each free block provide the logical sector number of the next free block. (b) SSTF disk-scheduling policy? (c)!which of the above algorithms is more efficient in this particular case, and why? (Please show your work and justify your answer) 15 16 Remember Solution 3 Performance: bit vectors provide fast access to find clusters of adjacent free blocks. Reliability: if an item in a linked list is lost, the rest of the list is lost. With a bit vectors only the items are lost. Also, it s possible to have multiple copies of the bit vector since it is a more compact representation. 17 18

Question 4 Consider a demand-paged computer system where the degree of multiprogramming is currently fixed at four. The system was recently measured to determine utilization of CPU and the paging disk. The results are one of the following alternatives. For each case, what is happening (in one phrase)? Can you increase the degree of multiprogramming to increase the CPU utilization? (a) CPU utilization 12 percent; disk utilization 2 percent. b) CPU utilization 86 percent; disk utilization 4 percent. c) CPU utilization 10 percent; disk utilization 95 percent. Solution 4 (a) CPU utilization 12 percent; disk utilization 2 percent. Answer: both CPU and disk utilization are low. We can increase the degree of multiprogramming to increase CPU utilization. b) CPU utilization 86 percent; disk utilization 4 percent. Answer: CPU utilization is sufficiently high to leave things alone; increasing the degree of multiprogramming may decrease the CPU utilization. c) CPU utilization 10 percent; disk utilization 95 percent. Answer: thrashing is occurring. We cannot increase the CPU utilization 19 20 Question 5 Consider a demand-paging system with the following time-measured utilization: CPU utilization 18% Paging disk 96% Other I/O devices 6% For each of the following, say whether it will (or is likely to) improve CPU utilization. Answer with YES or NO or LIKELY, and justify your answers. (a) Install a faster CPU. (b) Install a bigger paging disk. (c) Decrease the degree of multiprogramming. (d) Install more main memory. 21 Solution 5 (a) Install a faster CPU. NO. a faster CPU reduces the CPU utilization further since the CPU will spend more time waiting for a process to enter in the ready queue. (b) Install a bigger paging disk. NO. the size of the paging disk does not affect the amount of memory that is needed to reduce the page faults. (c) Decrease the degree of multiprogramming. YES. by suspending some of the processes, the other processes will have more frames in order to bring their pages in them, hence reducing the page faults. (d) Install more main memory. Likely. more pages can remain resident and do not require paging to or from the disks. 22 Question 6 Question 7 Consider the following diagram which shows the relative time for three concurrent processes: P, Q, and R. Given the following memory partitions (in kilobytes): 200, 600, 500, 800, 400, 300 (in order); how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 292, 522, 138, 770, 162, 418 (in order). Which algorithm makes the most efficient usage of memory? 23 24

Consider the following segment table:!! Segment! Base!! Length!! 0!! 219!! 600!! 1!! 2300!! 14!! 2!! 90!! 100!! 3!! 1327!! 580!! 4!! 1952!! 96 Question 8 What are the physical addresses for the following logical addresses? a. 0, 100 b. 2, 100 c. 3, 0 d. 4, 10 Consider the paging table on the right. What are the physical addresses of the following logical addresses [p,d] : a) 0,0 b) 1,4 c) 2,3 Question 9 25 26 Question 10 Consider the following demand paging system: Memory access time = 1 microsecond 40% of the time the page that is being replaced has been modified and therefore does need to be swapped out Swap Page Time = 10 msec = 10,000 microsec a) What is the Effective Access Time (EAT) if 1 out of 1000 memory accesses result in a page fault? b) What if we only want 20% performance degradation? 27