Outline: Operating Systems



Similar documents
4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Chapter 3. Operating Systems

Page 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems

Chapter 14 MS-DOS Operating System

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Operating System Software

Chapter 8 Operating Systems and Utility Programs

1/5/2013. Technology in Action

CHAPTER 17: File Management

Computers: Tools for an Information Age

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

Learning Objectives. Chapter 1: Networking with Microsoft Windows 2000 Server. Basic Network Concepts. Learning Objectives (continued)

Operating Systems 4 th Class

STUDY GUIDE CHAPTER 4

Operating Systems. and Windows

EUCIP - IT Administrator. Module 2 Operating Systems. Version 2.0

Discovering Computers

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 2 Introducing Operating Systems

Operating System Today s Operating Systems File Basics File Management Application Software

Chapter Contents. Operating System Activities. Operating System Basics. Operating System Activities. Operating System Activities 25/03/2014

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

OPERATING SYSTEM SERVICES

CHAPTER 15: Operating Systems: An Overview

Priority Pro v17: Hardware and Supporting Systems

Chapter 4. System Software. What You Will Learn... Computers Are Your Future. System Software. What You Will Learn... Starting the Computer

Click to view Web Link, click Chapter 8, Click Web Link from left navigation, then click BIOS below Chapter 8 p. 395 Fig. 8-4.

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

Memory management basics (1) Requirements (1) Objectives. Operating Systems Part of E1.9 - Principles of Computers and Software Engineering

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Chapter 2: OS Overview

Software: Systems and Application Software

Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching

Chapter 5: System Software: Operating Systems and Utility Programs

Lecture 6: Operating Systems and Utility Programs

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Memory Management Outline. Background Swapping Contiguous Memory Allocation Paging Segmentation Segmented Paging

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

File-System Implementation

Parallels Transporter Agent

Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Local Area Networks: Software and Support Systems

Upon completion of this chapter, you will able to answer the following questions:

Converting a Parallels Virtual Machine to Run in VMware Fusion VMware Fusion 1.0

Unit 4 Objectives. System Software. Component 4: Introduction to Information and Computer Science. Unit 4: Application and System Software Lecture 2

IOS110. Virtualization 5/27/2014 1

Chapter 3 Operating-System Structures

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

The Xen of Virtualization

Chapter 4. Operating Systems and File Management

Chapter 1 Computer System Overview

Virtualization in Linux KVM + QEMU

CS420: Operating Systems OS Services & System Calls

Chapter 8 Objectives. Chapter 8 Operating Systems and Utility Programs. Operating Systems. Operating Systems. Operating Systems.

K Hinds Page No. 1. Lecture 3 ASCII

Chapter 15 Windows Operating Systems

Network operating systems typically are used to run computers that act as servers. They provide the capabilities required for network operation.

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

Operating Systems: Basic Concepts and History

Computer Layers. Hardware BOOT. Operating System. Applications

Understanding the Boot Process and Command Line Chapter #3

OPERATING SYSTEMS Software in the Background. Chapter 2

SOFTWARE UNIT 1 PART B C O M P U T E R T E C H N O L O G Y ( S 1 O B J A N D O B J 3-2)

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 3 Installing Windows

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

Overview and History of Operating Systems

lesson 1 An Overview of the Computer System

BaseManager & BACnet Manager VM Server Configuration Guide

Functions of NOS Overview of NOS Characteristics Differences Between PC and a NOS Multiuser, Multitasking, and Multiprocessor Systems NOS Server

13.1 Backup virtual machines running on VMware ESXi / ESX Server

EUCIP IT Administrator - Module 2 Operating Systems Syllabus Version 3.0

SUMMARIES OF VIDEOS GRADE 11 SYSTEMS TECHNOLOGIES

APC Enterprise KVM Switches

Chapter 8: Installing Linux The Complete Guide To Linux System Administration Modified by M. L. Malone, 11/05

Chapter 6, The Operating System Machine Level

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

Quick Start Guide for Parallels Virtuozzo

VMware Server 2.0 Essentials. Virtualization Deployment and Management

theguard! ApplicationManager System Windows Data Collector

Topic 2: Computer Management File Management Folders A folder is a named storage location where related files can be stored. A folder also known as

IT Essentials v4.1 LI Upgrade and configure storage devices and hard drives. IT Essentials v4.1 LI Windows OS directory structures

Chapter 7A. Functions of Operating Systems. Types of Operating Systems. Operating System Basics

SOFTWARE TECHNOLOGIES

Operating System Overview. Otto J. Anshus

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu

Gigabyte Management Console User s Guide (For ASPEED AST 2400 Chipset)

About Parallels Desktop 7 for Mac

About Parallels Desktop 10 for Mac

AdminToys Suite. Installation & Setup Guide

PaperClip32. Installation Guide. for Workgroup and Enterprise Editions. Document Revision 2.1 1

6.033 Computer System Engineering

Enabling Backups for Windows and MAC OS X

Operating Systems (Linux)

MS 50292: Administering and Maintaining Windows 7

JAMF Software Server Installation Guide for Linux. Version 8.6

Virtual vs Physical Addresses

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Chapter 5: Fundamental Operating Systems

Transcription:

Outline: Operating Systems What is an OS OS Functions Multitasking Virtual Memory File Systems Window systems PC Operating System Wars: Windows vs. Linux 1 Operating System provides a way to boot (start) the computer control of the computer hardware: keyboard, display, mouse, printer a file system, a way to name and organize files for storage on disk, hence Disk Operating System (DOS) 2 Lecture 4 -- Page 1

Operating System provides a way to load and run user (application) programs a way for application programs to use the hardware devices and file system 3 Operating System provides a User Environment a consistent way for application programs to interact with the user Much of the UI is provided by Windows, not by individual programs Windows have a Graphical User Interface (GUI Interface) 4 Lecture 4 -- Page 2

Operating System provides multiple users - several people may use the computer at one time security - to prevent individual programs and users from interfering with each other Examples: UNIX Linux Windows NT with MetaFrame 5 Operating System provides Ease of use: presents three useful illusions Many separate computers, one for each process Large memory Disks and other secondary storage are organized as collections of files 6 Lecture 4 -- Page 3

Illusion #1: Multitasking Reality: One CPU One instruction at a time Illusion: Several application programs executing concurrently Implementation: Operating system divides CPU time among application programs (time sharing) - each program thinks it is the only one running 7 Task Switching Illustrated Application Memory Area Initially, the CPU executes MS Word IP points to instruction in MS Word code CPU registers contain data related to MS Word CPU IP Registers Process A (e.g. MS Word) Process B (e.g. Netscape) Operating System Memory Area Process A register save area Process B register save area 8 Lecture 4 -- Page 4

Task Switching Illustrated Application Memory Area After a short period of time (a few milliseconds) CPU is interrupted by operating system IP and other CPU registers related to MS Word are saved to a special memory area reserved by the OS CPU IP Registers Process A (e.g. MS Word) Process B (e.g. Netscape) Operating System Memory Area Process A register save area Process B register save area 9 Task Switching Illustrated Application Memory Area After a short period of time (a few milliseconds) CPU is interrupted by operating system IP and other CPU registers related to MS Word are saved to a special memory area reserved by the OS IP and other CPU registers related to Netscape are loaded from special memory area CPU IP Registers Process A (e.g. MS Word) Process B (e.g. Netscape) Operating System Memory Area Process A register save area Process B register save area 10 Lecture 4 -- Page 5

Task Switching Illustrated Application Memory Area This makes the CPU start executing instructions from the Netscape code CPU IP Registers Process A (e.g. MS Word) Process B (e.g. Netscape) Operating System Memory Area Process A register save area Process B register save area 11 Cooperative Multitasking Used in early versions of Windows Application explicitly passes control back to OS A badly behaved application may never pass control back. What happens? 12 Lecture 4 -- Page 6

Preemptive Multitasking OS/2, UNIX, NT, DOS applications running under Windows OS preempts when it wants to take control When application asks for I/O - Any I/O request requires a branch to the OS - The I/O request won't be handled right away anyway (I/O devices are much slower) - So OS initiates I/O request, then saves application state, and gives a time slice to another application Or when application has run longer than a preset limit - A special timer interrupt signal causes CPU to branch to an interrupt handler program, which is part of the OS 13 Illusion #2: Memory Management Assign memory to each process Some OS provide memory protection Don't let a process access memory not assigned to it P2 (150K) P1 (100K) OS Memory area 14 Lecture 4 -- Page 7

Non-contiguous Memory Example: Processes 1, 2, and 3 Process 1 starts with 100K of memory Process 2 starts with 150K of memory Process 1 asks for 50K more of memory Process 2 exits Process 3 starts with 200K of memory P1 P1 P3 P1 P2 P3 P1 P1 P1 OS Memory area OS Memory area OS Memory area 15 Issues OS loads applications in dynamically determined, non-contiguous pieces of memory Program code thinks it is stored in a fixed, contiguous memory area for example, branch instructions refer to fixed memory addresses How can the system reconcile the two views? 16 Lecture 4 -- Page 8

How to Do it: Paging Divide all of main memory into frames Each frame holds 1 page (say 1000 bytes) Divide all program code and data into pages page size = frame size Place each program page into next available memory frame Process 1 gets frames 51-70 Process 2 gets frames 71-100 Process 1 gets frames 101-110 Process 2 frees 71-100 P3 110 P1 110 P1 110 P1 100 P2 100 100 P3 70 70 70 P1 P1 P1 50 50 50 OS Memory OS Memory OS Memory area area area 17 Address Translation Virtual Address consists of page number and location within the page Page may be located anywhere in real memory Lookup in page table Translate page number to correct frame number Location within the page is unchanged Page # 1 2 30 31 32 Frame # 71 72 100 111 112 Page table for P3 P3 110 P1 100 P3 70 P1 50 OS Memory area 18 Lecture 4 -- Page 9

Address Translation Example Use decimal numbers for simplicity Assume page size = frame size = 1000 bytes CPU wants to access memory address 30,127 page number = 30, location within page = 127 Address is intercepted by paging hardware page table indicates that page 30 is stored in frame 100 Actual address sent to memory hardware is 100,127 CPU Paging Hardware Memory Page # 1 2 30 31 32 Frame # 71 72 100 111 112 19 Virtual Memory Some pages are not used for a long time Why keep all of them in memory? Copy page to hard disk and use frame for some other page Copy pages back from hard disk to main memory frames as they're needed Total number of memory pages allocated to processes can exceed total number of memory frames Process (and its programmer) not aware that main memory is too small (the big memory illusion) It asks for a main memory location (Page #, offset on page) OS has to get that page into main memory if not already there Called Virtual Memory 20 Lecture 4 -- Page 10

VM and Caches Both techniques exploit a small, fast memory and a big, slow memory Caches Ask for address of location in slow memory Check if that location is also in fast memory (cache) Virtual Memory Ask for address of location in fast memory Not enough fast memory for all the addresses - Some fast memory addresses are actually in slow memory - Copy needed page from slow memory to fast memory 21 Illusion #3: File Systems Reality: Disks are sets of tracks Tracks are sets of sectors Sectors can store fixed-sized byte blocks Illusion: Disks are sets of directories Directories contain other directories or files Files are variable-size byte sequences Directories and files have names 22 Lecture 4 -- Page 11

The File System A DIRECTORY kept by the operating system Keeps track of each file s name Contains information about the file s physical location May keep additional information such as date created, etc. 23 The File System Special files (subdirectories) are themselves directories Directories may contain subdirectories, nesting to multiple levels 24 Lecture 4 -- Page 12

Hierarchical directories Drive C: \ [root] My Documents Program Files Windows 25 Hierarchical directories Drive C: \ [root] My Documents Program Files Windows Desktop Start Menu System 26 Lecture 4 -- Page 13

Windows file naming Four part names Drive (or device) Path File name File type (extended name) C:\Windows\System\WinTrust.hlp 27 C:\Windows\System\WinTrust.hlp C: = Drive (hard disk named C:) \Windows\System\ = Path begin in \ (root) go to Windows subdirectory go to System subdirectory of Windows WinTrust = File Name hlp = File Type (help file) 28 Lecture 4 -- Page 14

Windows file types Identify the kind of EXE - program (executable file) file COM - command For data files, identify the DOC - MS Word document application that PPT - PowerPoint presentation usually opens the file XLS - Excel spreadsheet HLP - Help file 29 File System Abstract Functions File operations Set access privileges on file Create or delete a file Open or close Seek to particular position in file Read or write at current position Directory operations Create or delete a directory Move a file or directory inside another directory General operations Search for a file with given name 30 Lecture 4 -- Page 15

File Representation Combine disk sectors into clusters 1 cluster ~ 10000 bytes Implement file as collection of clusters Clusters need not be contiguous (near each other on the disk) - Why is this an advantage? - Why is this a disadvantage? - How big should the clusters be? Keep a map of the clusters used in each file Which is better: contiguous or fragmented? Keep a map of the free clusters 31 DOS Hard Disk Organization Hard Disk Cluster 0 Boot Sector Cluster 1 File Allocation Table Cluster 2 Root Directory File Data Cluster 3 File Data... 32 Lecture 4 -- Page 16

Example: DOS Directories and FAT Root Directory File Allocation Table 0 1 2 3 4 Filename file1.txt file2.doc Cluster 2 6 5 0 6 0 7 3 8 4 9 5 12 7 8 9 10 10 11 12 13 14 11 0 16 14 15 15 16 17 18 19 0 0 0 0 0 Legend: FAT Block 10 Block 10 of the File Allocation Number 11 Table contains the value 11 Contents of FAT Block 33 OS Wars: Windows vs. Linux Linux is a type of Unix Free operating System Original version developed by Linus Torvalds in 1991 Greatly enhanced and extended by the global Open Source software development community 34 Lecture 4 -- Page 17

Comparison of Windows NT and Linux Appearance Cost Applications Scalability Software Support Technical Support Compatibility Configurations 35 Appearance NT GUI Linux Command Line 36 Lecture 4 -- Page 18

Cost NT 5 user version $809 10 user version $1129 25 user version $3,999 Other costs Office Suite, Compiler / Development Tools Netware, Virus Protection, Backup packages, Database operations Linux Free 37 Applications Many more programs for NT than for Linux. Choice of vendors is much larger for NT. Many of Linux applications are not available in GUI 38 Lecture 4 -- Page 19

Scalability NT Linux Supports 4GB of RAM NTFS provides 64 bit file system Integrated file cache Supports 2 GB of RAM Maximum file size of 2GB 39 Software Support NT Wide range of commercial software Single user system Linux Windowing protocol 40 Lecture 4 -- Page 20

Technical Support NT Linux Dedicated support network Support through partners and OEM s 350, 000 Microsoft trained professionals Free Online Support Peer to Peer support 41 Compatibility NT Difficult to access UNIX file systems No UNIX programs run under NT NT Backups only run on NT Linux Can access DOS/Windows/NT file systems Compatible with any version of UNIX Many window programs run under Linux Backups are compatible between distributions of Linux, and UNIX but not with NT 42 Lecture 4 -- Page 21

Configurations NT Admin user is not authorized to make all changes Configuration Linux Easily changed to meet needs Interfaces Wide range of free tools to configure system 43 Security NT Access Permissions Bound to machine and Domain Have to check by hand for any file changes Linux Security is tied to the file Can easily tell if a file has been changed Firewall functionality is built in to the server 44 Lecture 4 -- Page 22