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

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

QUESTION BANK UNIT I

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

CSE 120 Principles of Operating Systems

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

CS 537 Fall 2017 Review Session

MC7204 OPERATING SYSTEMS

Final Exam Preparation Questions

File. File System Implementation. File Metadata. File System Implementation. Direct Memory Access Cont. Hardware background: Direct Memory Access

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

Review question: Protection and Security *

CS 550 Operating Systems Spring File System

Operating Systems Design Exam 2 Review: Fall 2010

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

Operating Systems. Week 9 Recitation: Exam 2 Preview Review of Exam 2, Spring Paul Krzyzanowski. Rutgers University.

File Systems. Kartik Gopalan. Chapter 4 From Tanenbaum s Modern Operating System

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

File. File System Implementation. Operations. Permissions and Data Layout. Storing and Accessing File Data. Opening a File

CSC369 Lecture 9. Larry Zhang, November 16, 2015

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.

CS6401- Operating System QUESTION BANK UNIT-IV

Operating Systems Prof. Allan Gottlieb Practice Final Exam Page 1 Name

Distributed Deadlock Detection

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

Fall COMP3511 Review

SNS COLLEGE OF ENGINEERING

CSC369 Operating Systems. Spring 2007

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

2 nd Half. Memory management Disk management Network and Security Virtual machine

CS4411 Intro. to Operating Systems Final Fall points 10 pages

Chapter 12: Secondary-Storage Structure. Operating System Concepts 8 th Edition,

Outlook. File-System Interface Allocation-Methods Free Space Management

Question Points Score Total 100

Operating Systems. Operating Systems Professor Sina Meraji U of T

CS510 Operating System Foundations. Jonathan Walpole

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

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

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

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

Disk Scheduling COMPSCI 386

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

File Systems. ECE 650 Systems Programming & Engineering Duke University, Spring 2018

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

Introduction. Operating Systems. Outline. Hardware. I/O Device Types. Device Controllers. (done)

Operating Systems Design Exam 2 Review: Spring 2011

Midterm II December 4 th, 2006 CS162: Operating Systems and Systems Programming

CS 416: Opera-ng Systems Design March 23, 2012

CHAPTER NO - 1 : Introduction:

CS420: Operating Systems. Mass Storage Structure

1993 Paper 3 Question 6

The UNIX Time- Sharing System

Disks, Memories & Buffer Management

Introduction. Operating Systems. Outline. Hardware. I/O Device Types. Device Controllers. One OS function is to control devices

Da-Wei Chang CSIE.NCKU. Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University

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

CS153: Final Review1. Chengyu Song. Slides modified from Harsha Madhyvasta, Nael Abu-Ghazaleh, and Zhiyun Qian

EECS 482 Introduction to Operating Systems

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

Operating Systems Design Exam 2 Review: Spring 2012

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

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

File System Internals. Jo, Heeseung

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

CSI3131 Final Exam Review

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

I/O 1. Devices and I/O. key concepts device registers, device drivers, program-controlled I/O, DMA, polling, disk drives, disk head scheduling

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

File System Implementation. Sunu Wibirama

CS3600 SYSTEMS AND NETWORKS

SOLUTION ASSIGNMENT 3 CMPT300 SUMMER 2015

File Systems Part 1. Operating Systems In Depth XIV 1 Copyright 2018 Thomas W. Doeppner. All rights reserved.

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

CS140 Operating Systems and Systems Programming Final Exam

Prepared by Heena Patel(Asst. Prof) Page 1

Chapter 4 File Systems. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved

FILE SYSTEM IMPLEMENTATION. Sunu Wibirama

Midterm Exam #2 April 20, 2016 CS162 Operating Systems

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

Introduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1

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

COMP 3361: Operating Systems 1 Final Exam Winter 2009

CS6401- Operating System UNIT-III STORAGE MANAGEMENT

Some Practice Problems on Hardware, File Organization and Indexing

Exam Guide COMPSCI 386

CS370 Operating Systems

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

SOLUTIONS FOR THE THIRD 3360/6310 QUIZ. Jehan-François Pâris Summer 2017

Segmentation with Paging. Review. Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Segmentation with Page (MULTICS)

Operating System MC Exercises

Introduction. Secondary Storage. File concept. File attributes

Secondary Storage (Chp. 5.4 disk hardware, Chp. 6 File Systems, Tanenbaum)

Computer Systems Laboratory Sungkyunkwan University

Operating System(16MCA24)

Introduction. Operating Systems. Outline. Hardware. I/O Device Types. Device Controllers. One OS function is to control devices

EECE.4810/EECE.5730: Operating Systems Spring 2017

I/O Management and Disk Scheduling. Chapter 11

CSE380 - Operating Systems

CS4411 Intro. to Operating Systems Final Fall points 12 pages

Long-term Information Storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple proces

Comp 204: Computer Systems and Their Implementation. Lecture 18: Devices

Transcription:

Memory Management 1) Consider a logical address space of 64 (or 26) pages of 1,024 (or 210) bytes each, mapped onto a physical memory of 32 (or 25) frames. a. How many bits are there in the logical address? b. How many bits are there in the physical address? 2) Page Address Translation Assuming a 1 KB page size, what are the page numbers and offsets for the following address references (provided as decimal numbers): a. 2375 b. 19366 c. 30000 d. 256 e. 16385 3) Sharing memory pages a) What is the effect of allowing two entries in a page table to point to the same page frame in memory? Explain how this effect could be used to decrease the amount of time needed to copy a large amount of memory from one place to another. b) What is the copy-on-write feature, and under what circumstances is it beneficial to use this feature? c) What is a re-entrant program 4) What is the difference between a physical address and a virtual address? 5) A computer with a 32 bit address uses a two level page table. Virtual addresses are split into a 9-bit top-level, an 11-bit second-level page table, and an offset. How large are the pages and how many are there in the address space. Page 1 of 6

6) Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in order), how would the best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in order)? Which algorithm makes the most efficient use of memory? 100 KB 500 KB 200 KB 300 KB 600 KB Page 2 of 6

Virtual Memory 7) Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs. 8) Consider the following page reference string: 1, 2, 3, 4, 2, 1,5,3,6,7,2,1,2,3,7,6,3,5 How many page faults would occur for the following replacement algorithms, assuming, three, frames? Remember that all frames are initially empty, so your first unique pages will cost one fault each. a. LRU replacement b. Second chance replacement, aka clock replacement Page 3 of 6

FILE MANAGEMENT 9) What file organization would you choose (and why) to maximize efficiency in terms of speed of access, use of storage space and ease of updating (adding/deleting /modifying) when the data are: ( give me a good enough reason for your choice and you ll get credit, even if it isn t the choice I would make) a.) Updated infrequently and accessed frequently in random order? b.) Updated frequently and accessed in its entirety relatively frequently? c.) Updated frequently and accessed frequently in random order? 10) Name one advantage of hard links over symbolic links and one advantage of symbolic links over hard links. 11) Directories can be implemented as special files that can be accessed in limited ways, or as ordinary files. What are the advantages and disadvantages of each approach? Consider the operating system, file management, disk management and whatever else you feel should be considered. 12) Describe the folling methods of keepting track of which discks blocks go with which files (sec 4.3.2) a) Contiguous Allocation b) Linked-list Allocation c) Index node (i-node) Allocation 13) What is a virtual file system (VFS)? I/O Management and Disk Scheduling 14) For the following disk accesses, compute the total number of tracks traversed for the following list of seeks to disk cylinder: 26 37 100 14 88 33 99 12. Assume head is initially positioned over 26. FCFS SSTF : Shortest service Time SCAN (assume the head is going up, i.e., moving in the direction of decreasing track number) C-SCAN (assume the head is going up, i.e.,, moving in the direction of decreasing track number) Page 4 of 6

15) What are the advantages and disadvantages of smaller vs. larger disk sector size? Talk about both advantages and disadvantages. Consider operating system work, like buffering, paging, disk scheduling, etc.. 16) Suppose a disk free space list indicates that the following blocks of storage are available: 100 blocks, 500 blocks, 200 blocks, 300 blocks, and 600 blocks (in order). There are requests to allocate 212 blocks, 417 blocks, 112 blocks, and 426 blocks (in order)? Using the first best fit allocation strategy, who would the blocks be allocated? Using the worst best fit allocation strategy, who would the blocks be allocated? Which strategy makes the most efficient use of storage? 17) Define device memory mapped I/O and direct memory access (DMA) and how they are related. 18) FFS (Fast file system). Include the layout and use of inode structure and entries. 19) What is meant by device independence with regards to I/O software. 20) Explain how an OS can facilitate installation of a new device without an need for recompiling the OS. Reliability 21) We discussed 3 approaches to reliability. Describe one: Careful sequencing of file system operations Copy-on-write Journaling 22) Describe what is meant by RAID. Explain levels RAID 0 and RAID 3. DeadLocks 23) Consider the traffic deadlock depicted in Figure 1.a. Show that the four necessary conditions for deadlock indeed hold in this example. b. State a simple rule for avoiding deadlocks in this system. 24) In a real computer system, neither the resources available nor the demands of processes for resources are consistent over long periods (months). Resources break or are replaced, new processes come and go, new resources are bought and added to the system. If deadlock is controlled by the banker s algorithm, which of the following changes can be made safely (without introducing the possibility of deadlock), and under what circumstances? Page 5 of 6

a. Increase Available (new resources added) b. Decrease Available (resource permanently removed from system) c. Increase Max for one process (the process needs more resources than allowed, it may want more) d. d. Decrease Max for one process (the process decides it does not need that many resources) e. Increase the number of processes 25) Know how to do the banker s algorithm, determine if a system is in a safe state 26) With regards to deadlock management, what is meant by a safe state? Page 6 of 6