414/415 Review Session Emin Gun Sirer. True/False Multiprogramming offers increased response time Instructions to access a raw disk device need to be.

Slides:



Advertisements
Similar presentations
Threads, SMP, and Microkernels
Advertisements

Chapter 4 Memory Management Page Replacement 补充:什么叫页面抖动?
CAS3SH3 Midterm Review. The midterm 50 min, Friday, Feb 27 th Materials through CPU scheduling closed book, closed note Types of questions: True & False,
Operating Systems Review.
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
CCNA – Network Fundamentals
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Chapter 4 Threads, SMP, and Microkernels Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design.
Computer Systems/Operating Systems - Class 8
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Multiple Processor Systems Chapter Multiprocessors 8.2 Multicomputers 8.3 Distributed systems.
Chapter 2: Processes Topics –Processes –Threads –Process Scheduling –Inter Process Communication (IPC) Reference: Operating Systems Design and Implementation.
CMPT 300: Operating Systems Review THIS REIVEW SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM.
Yousuf Surmust Instructor: Marius Soneru Course: CS550 Fall 2001
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Computer System Overview
CS533 - Concepts of Operating Systems
1 Chapter 4 Threads Threads: Resource ownership and execution.
PRASHANTHI NARAYAN NETTEM.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
CS252: Systems Programming Ninghui Li Final Exam Review.
1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
Chapter 4 Threads, SMP, and Microkernels Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E.
Presentation on Osi & TCP/IP MODEL
1 Process States (1) Possible process states –running –blocked –ready Transitions between states shown.
Silberschatz and Galvin  Chapters 3 and 5 Possible questions –Tracing a given program involving fork, exec, semaphores, and share memory –Wring.
Operating Systems Lecture 2 Processes and Threads Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard. Zhiqing Liu School of.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
CIS250 OPERATING SYSTEMS Memory Management Since we share memory, we need to manage it Memory manager only sees the address A program counter value indicates.
Processes and Threads Processes have two characteristics: – Resource ownership - process includes a virtual address space to hold the process image – Scheduling/execution.
SWE202 Review. Processes Process State As a process executes, it changes state – new: The process is being created – running: Instructions are being.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
(a) What is the output generated by this program? In fact the output is not uniquely defined, i.e., it is not always the same. So please give three examples.
CE Operating Systems Lecture 13 Linux/Unix interprocess communication.
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
Middleware Services. Functions of Middleware Encapsulation Protection Concurrent processing Communication Scheduling.
Networking Basics CCNA 1 Chapter 11.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Lecture 5: Threads process as a unit of scheduling and a unit of resource allocation processes vs. threads what to program with threads why use threads.
1 Rutgers UniversityCS 416: Operating Systems Final exam details December 22, pm-3pm. Venue: SEC 118. Tips: Spend time reading the questions before.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
CSE 153 Design of Operating Systems Winter 2015 Midterm Review.
What is an Operating System? Various systems and their pros and cons –E.g. multi-tasking vs. Batch OS definitions –Resource allocator –Control program.
What is a Process ? A program in execution.
Slides created by: Professor Ian G. Harris Operating Systems  Allow the processor to perform several tasks at virtually the same time Ex. Web Controlled.
Week 10 March 10, 2004 Adrienne Noble. Important Dates Project 4 due tomorrow (Friday) Final Exam on Tuesday, March 16, 2:30- 4:20pm.
Introduction to operating systems What is an operating system? An operating system is a program that, from a programmer’s perspective, adds a variety of.
Introduction to Operating Systems
Sarah Diesburg Operating Systems COP 4610
Operating System (OS) QUESTIONS AND ANSWERS
Section 10: Last section! Final review.
Process management Information maintained by OS for process management
Introduction to Operating Systems
Chapter 9: Virtual-Memory Management
Threads, SMP, and Microkernels
Operating Systems Review.
Page Replacement.
Midterm review: closed book multiple choice chapters 1 to 9
Lecture 4- Threads, SMP, and Microkernels
Operating Systems Lecture 1.
Major Topics in Operating Systems
February 5, 2004 Adrienne Noble
CS510 Operating System Foundations
CSE 153 Design of Operating Systems Winter 2019
Chapter 6 – Distributed Processing and File Systems
Sarah Diesburg Operating Systems CS 3430
Presentation transcript:

414/415 Review Session Emin Gun Sirer

True/False Multiprogramming offers increased response time Instructions to access a raw disk device need to be protected Setting the system mode bit to “kernel” needs to be a protected instruction Threads in the same address space share their code, data and stacks. Name three fields likely to be found in a TCB

True/False User-level threads would be a good choice for a process which is providing a file service. The resource allocation graph approach to detecting deadlocks takes O(N 2 ) time on average where N is the number of processes in the system. TCP is a better choice than UDP for a server which streams video to clients. External fragmentation can lead to poor memory usage in page-based memory management systems.

True/False Given a static (well-known) job load, shortest job first scheduling gives the lowest average waiting time. Reducing the time quantum in a preemptive OS reduces the average turnaround time of processes. The minithread package implements kernel threads. Semaphores and condition variables are interchangeable synchronization primitives. Route discovery in DSR takes time O(N 2 ) where N is the number of hosts in the network.

True/False Every sending machine on a CSMA-CD bus is guaranteed to send the message it wants to send. A domain name service (DNS) provides names for users on the Internet. IP is a transport-level protocol. IP addresses are used in the Ethernet protocol to address packets to hosts. Virtual memory is limited by the amount of RAM a system has.

Essay Questions Can the following code, when executed by multiple threads concurrently, lead to deadlock ? Why or why not ? A hardware designer argues that he has enough transistors on the chip to provide 1024 integer registers and 512 floating point registers. You have been invited as the operating system guru to give opinion about the new design. –What is the effect of having such a large number of registers on the operating system? –What additional hardware features you would recommend added to the design above ? P(sema1); a++; P(sema2); v++; V(sema2); V(sema1);

Essay Questions Write an implementation of a semaphore using a monitor. The monitor should export two procedures P and V. You are given primitives sendmsg(dest, buffer, bufferlen) and recvmsg(buffer, int *bufferlen) for communicating unreliably over a communication network. You are asked to write a protocol for an application that requires reliable message sending and receiving. Your protocol can use the sendmsg and recvmsg primitives given above. Briefly describe the issues you think your protocol needs to deal with, to achieve reliability over these primitives. Can your protocol guarantee reliable delivery ? You don't need to write any pseudocode.

Essay Questions For the following sequence of page requests in a virtual memory system, show the progress of the following algorithms for the page replacement (on a main memory with 3 empty frames). a) FIFO b) LRU c) OPTIMAL d) MRU (Most Recently Used) Sequence : 1,0,7,2,1,7,5,2,0,1,7,0,3,4,0,1,7,2,3 Identify the four criteria which are required to hold in order for a system to be able to deadlock. Discuss how preventing each characteristic of deadlock might be done, and how feasible it is to do so.

Essay Questions It is uncommon to see RPC systems implemented on top of TCP. Explain what features of TCP make it unsuitable as a foundation for RPC. Complete the following sentence: in our minithreads implementation, we need to occasionally disable interrupts because ______________. Write code to synchronize a factory floor for making cars, where two separate pipelines bring together the chassis and the body. Each pipeline is an independent process that calls chassis_ready or body_ready when a chassis or body is ready. You have a staging area which holds at most one chassis and one body (if you bring in a chassis when there is already one there, the factory breaks down). When both an engine and a chassis are in the staging area, you can put together the car and empty the staging area (call car_ready() when this is the case). Write the code for chassis_ready() and body_ready(). Other synchronization problems / banker’s algorithm / deadlock detection.