Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?

Slides:



Advertisements
Similar presentations
Chapter 4 Memory Management Page Replacement 补充:什么叫页面抖动?
Advertisements

Part IV: Memory Management
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.
Virtual Memory Management G. Anuradha Ref:- Galvin.
File Systems.
CS 311 – Lecture 21 Outline Memory management in UNIX
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Memory Management Norman White Stern School of Business.
CS4513 Distributed Computer Systems Review. What is a file descriptor? –What information must it contain? –What information might it contain?
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
Multiprocessing Memory Management
Understanding Operating Systems1 Operating Systems Virtual Memory Thrashing Single-User Contiguous Scheme Fixed Partitions Dynamic Partitions.
Paging and Virtual Memory. Memory management: Review  Fixed partitioning, dynamic partitioning  Problems Internal/external fragmentation A process can.
Chapter 12: File System Implementation
Operating Systems Final Exam Review. Topics F Virtual Memory F File Systems F I/O Devices F Project 3: Macro Shell.
CMPT 300: Operating Systems Review THIS REIVEW SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Memory Management 1 CS502 Spring 2006 Memory Management CS-502 Spring 2006.
CS-3013 & CS-502, Summer 2006 Memory Management1 CS-3013 & CS-502 Summer 2006.
Operating Systems Final Exam Review. Topics Paging Virtual Memory File Systems I/O Devices Project 3: Macro Shell.
Operating Systems Processes (Ch 4.1). Processes “A program in execution” Modern computers allow several at once –“pseudoparallelism” A B C Program Counter.
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
Operating Systems Review. Outline Intro –What is an OS, OS History Operating System Concepts –Processes, Files, System Calls, Shells Operating System.
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
Review. Questions F What are two functions of an OS? F What “layer” is above the OS? F What “layer” is below the OS?
Chapter 3 Memory Management: Virtual Memory
Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.
Silberschatz and Galvin  Chapters 3 and 5 Possible questions –Tracing a given program involving fork, exec, semaphores, and share memory –Wring.
Review of Memory Management, Virtual Memory CS448.
CS 153 Design of Operating Systems Spring 2015 Midterm Review.
Introduction to Processes CS Intoduction to Operating Systems.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
SWE202 Review. Processes Process State As a process executes, it changes state – new: The process is being created – running: Instructions are being.
Memory Management Techniques
Cpr E 308 Spring 2004 Real-time Scheduling Provide time guarantees Upper bound on response times –Programmer’s job! –Every level of the system Soft versus.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
1 Memory Management. 2 Fixed Partitions Legend Free Space 0k 4k 16k 64k 128k Internal fragmentation (cannot be reallocated) Divide memory into n (possible.
(a) What is the output generated by this program? In fact the output is not uniquely defined, i.e., it is not necessarily the same in each execution. What.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
1 Rutgers UniversityCS 416: Operating Systems Final exam details December 22, pm-3pm. Venue: SEC 118. Tips: Spend time reading the questions before.
CSE 153 Design of Operating Systems Winter 2015 Midterm Review.
1/31/20161 Final Exam Dec 10. Monday. 4-7pm. Phelp 1160 Similar to midterm The exam is closed book. You can bring 2 page of notes (double sided) Nachos.
IT 344: Operating Systems Winter 2010 Module 23 Course Review Chia-Chi Teng CTB 265.
What is an Operating System? Various systems and their pros and cons –E.g. multi-tasking vs. Batch OS definitions –Resource allocator –Control program.
Purpose of Operating System Part 2 Monil Adhikari.
File Systems.  Issues for OS  Organize files  Directories structure  File types based on different accesses  Sequential, indexed sequential, indexed.
MIDTERM REVIEW CSCC69 Winter 2016 Kanwar Gill. What is an OS? What are processes and threads? Process states? Diagram showing the state changes What data.
Chapters 3 and 5 Possible questions
Operating System (OS) QUESTIONS AND ANSWERS
Chapter 9: Virtual Memory
Section 10: Last section! Final review.
Chapter 11: File System Implementation
Chapter 9: Virtual-Memory Management
Operating Systems Review.
Chapter 15 – Part 1 The Internal Operating System
CSE 451: Operating Systems Spring 2005 Module 23 Course Review
CSE 451: Operating Systems Spring 2005 Module 23 Course Review
CSE451 - Section 10.
Operating Systems Processes (Ch 4.1).
Operating Systems Lecture 1.
February 5, 2004 Adrienne Noble
CSE 451: Operating Systems Winter 2006 Module 24 Course Review
Last section! Project 4 + EC due tomorrow Today: Project 4 questions
CSE451 - Section 10.
Operating System Concepts
Operating System Concepts
CSE 153 Design of Operating Systems Winter 2019
COMP755 Advanced Operating Systems
Lecture Topics: 11/20 HW 7 What happens on a memory reference Traps
Presentation transcript:

Operating Systems Review

Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?

Questions What causes OS to change? –Or, why aren’t we still running MS-DOS? What is a process? What is a file?

True or False Unix is a “simple structure” OS Micro Kernels are faster than other OSes Virtual Machines are faster than other OSes

Questions Name 3 operating system structures Give one advantage of each Give one disadvantage of each

Questions How does a shell work? Or … arrange the commands in order: wait() pid = fork() exec() gets() while(1) { }

Review What is a PCB? Usually the PCB is in OS memory only. Assume we put the PCB into a processes address space. What problems might this cause?

Review List steps that occur during interrupt True or False: –Context switch times happen every 5-10 seconds –Most processes have long CPU burst times

Review What is (average) waiting time? Explain how SJF works True or False: –FCFS is optimal in terms of avg waiting time –Most processes are CPU bound –The shorter the time quantum, the better

Questions How does Windows NT/2000 avoid process starvation?

Review What is a “race condition”? What are 3 properties necessary for a correct “critical region” solution? What is Peterson’s Solution?

Possible Outputs? int main() { int *num, shm_id shm_id = shmget(502) num = (int *) shmat(shm_id) fork() *num = *num + 1 printf("%d\n", *num) } (Assume shm is 0 when first Created)

Possible Outputs? int num = 0; int main() { fork(); num = num + 1 printf("%d\n", *num) } What if fork() was spawn ()?

Review What does Test_and_Set do? What is one major advantage of semaphores over the Test_and_Set or Peterson’s solution?

Review What is the Memory Management Unit? What is a relocation register? What happens to it during a context switch?

Review What are some of the sections in an object module? What are some of the steps that occur during linking?

Review What is internal fragmentation? What is external fragmentation? What is compaction?

True or False With paging, logical address spaces are contiguous With paging, physical address spaces are contiguous Paging reduces the size of the possible address space used by a process

Review Does paging have fragmentation? –No? Then why not? –Yes? Then what kind? What are the overheads associated with paging?

Review What is run-time, dynamic linking?

Review True or False: a)The logical address space cannot be bigger than the physical address space b)Processes have big address spaces because they always need them Demand paging: a)Is unrelated to basic paging b)Brings logical pages into physical memory when requested by a process c)Increases memory requirements for a system d)All of the above e)None of the above

Review Page faults –What is a page fault? –What does an OS do during a page fault? What is a Page Replacement Algorithm? –What is “Belady’s Anomaly”? –How does the Optimal algorithm work? –How does Enhanced Second Chance work? What is thrashing? –How do we fix it?

Review What is a file descriptor? –What information must it contain? –What information might it contain?

Linked-List with Index How many files are there? How large are they? How many free blocks are there? Physical Block 0 1 null

I-Node How many data blocks are there? If you added 3 more data blocks to the file, what would happen? Disk blocks i-node null 62 77

Review Directories: –In what way is a directory different than a file? –In what way is a directory similar to a file? Aliases: –Describe a hard-link –Describe a soft-link Free space management: –What are two common methods of keeping track of free blocks?

Flo00 What is journaling? How is it used in modern file systems? How do large disks cause problems for some file systems? How are those problems addressed in modern file systems?

SCG+00 What are three classes of applications handled by typical OSes? What components does QLinux provide?

SCG+00 What are the two classes used in this test? Draw conclusions from the graph