Intro. To Operating Systems

Slides:



Advertisements
Similar presentations
Operating System.
Advertisements

Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
Operating systems This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License. Skills: none IT concepts: popular.
Operating Systems. What is an Operating System? A layer of software between users/applications and the hardware. The first program loaded onto a computer.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
MEMORY MANAGEMENT By KUNAL KADAKIA RISHIT SHAH. Memory Memory is a large array of words or bytes, each with its own address. It is a repository of quickly.
Operating Systems CS208. What is Operating System? It is a program. It is the first piece of software to run after the system boots. It coordinates the.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Week 6 Operating Systems.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
©Brooks/Cole, 2003 Chapter 7 Operating Systems. ©Brooks/Cole, 2003 Define the purpose and functions of an operating system. Understand the components.
Chapter 7 Operating Systems. Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
OPERATING SYSTEMS Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department 1.
Operating Systems. Overview What is an Operating System (OS) What is an Operating System (OS) What Operating Systems do. What Operating Systems do. Operating.
OPERATING SYSTEM - program that is loaded into the computer and coordinates all the activities among computer hardware devices. -controls the hardware.
Operating System Principles And Multitasking
UNIX and Shell Programming
OPERATING SYSTEMS BY LANDON, KYLE, AND ETHAN. WHAT IS THEIR PURPOSE? (1) manage the computer's resources, such as the central processing unit (2) establish.
Introduction to Computer Operating Systems
BY MR.SUTCHUKORN TANTITHANAWARAPONG COMPUTER TEACHER AT POOLCHAROENWITTAYAKOM SCHOOL Subject :Operating System C30207.
OPERATING SYSTEMS DO YOU REQUIRE AN OPERATING SYSTEM IN YOUR SYSTEM?
CT101: Computing Systems Introduction to Operating Systems.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
CMPS Operating Systems Prof. Scott Brandt Computer Science Department University of California, Santa Cruz.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
10/2/20161 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Introduction to Operating Systems Concepts
Computer System Structures
6 July 2015 Charles Reiss
Operating System & Application Software
Memory Management.
Introduction to Operating Systems
CS703 - Advanced Operating Systems
Operating System Structure
Chapter 4 – Introduction to Operating System Concepts
Operating Systems Overview
Operating System Structure
THE OPERATION SYSTEM The need for an operating system
Intro to Processes CSSE 332 Operating Systems
What is an operating system?
What is an Operating System?
Computer Software CS 107 Lecture 2 September 1, :53 PM.
OPERATING SYSTEM OVERVIEW
Systems Software Keywords Operating Systems
2P13 Week 2.
Shell & Kernel Concepts in Operating System
Chapter 1: Intro (excerpt)
Threads, SMP, and Microkernels
What is an Operating System?
Operating Systems.
Nat 4/5 Computing Science Operating Systems
Mid Term review CSC345.
Operating Systems.
Functions of an operating system
Introduction to Operating Systems
Chapter 2: Operating-System Structures
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
CSE451 Virtual Memory Paging Autumn 2002
Introduction to Operating Systems
The Main Features of Operating Systems
OPERATING SYSTEMS STRUCTURES
Software - Operating Systems
Chapter 2: Operating-System Structures
COMP755 Advanced Operating Systems
A very basic introduction
Chapter 3: Process Management
Presentation transcript:

Intro. To Operating Systems

What is an operating system? Very simply, it is a piece of software that manages the resources on your computer. Various tasks of a OS: Perform basic functions Schedule tasks Execute applications Act as a medium between hardware Typically, modern OS are in the form of a GUI (graphical user interface)

So why do need this piece of software So why do need this piece of software? Task 1  Need CPU  Need memory  Need access to files Task 2  Need CPU  Need memory  Need access to files Task 3  Need CPU  Need memory  Need access to files

Task 1: Managing tasks

Scenario 1: 3 processes (A, B, and C) need to complete. Process A needs to complete before process B can begin. Process B starts but never finishes. Process C needs a resource that process B is holding to complete. This results in a scenario called deadlock. Your machine is “stuck” waiting for a resource that never comes.

Scenario 2 3 processes (A, B, and C) need to complete. Process A finishes and starts process B. Process B finishes and starts process C. Process C finishes and starts process A. You have infinite loop. Your machine cannot reach a terminating condition for a process.

Scenario 3 3 processes (A, B, and C) need to complete. Process A is waiting for process B to release a resource Process B is waiting for process C to release a resource Process C is waiting for process A to release a resource This scenario is called a timeout, when your machine cannot resolve resource distribution. Process synchronization is off.

Task 2: Memory management Everything sitting in memory has a physical address. Before data can be used, it’s physical address must be evaluated. Operating systems use virtual memory for operations and then use a table to reference physical memory when it is needed.

Task 2: Memory management Virtual address Physical Address a 0x000001 b 0x153304 c d 0x165604 e 0x412887 f 0x985221 g 0x631475 h 0x652310

When memory is summoned, it is segmented into pages When memory is summoned, it is segmented into pages. How big these pages of memory are will depend on various operating systems. For our example, let’s say a page of memory is 128 bytes. Let’s now suppose we have to summon a program that takes up 150 bytes in memory before we can execute. We will now need two pages of memory to hold this program. However, we have a problem.

Memory Fragmentation Two pages of memory used, each page at 128 bytes. But you only needed 150, not 256. What does this do? 106 bytes of the second page was never used. Your memory is now fragmented. 128/128 22/128

Memory Fragmentation 56/128 71/128 128/128 90/128 Since you have dedicated page sizes, you have chunks in memory pages that never get used. Essentially, you have fragments. 22/128

Task 2: Memory management When you have fixed size memory pages, your memory will inherently become fragmented through repeated use. What if you decide you will dynamically allocate memory page sizes to avoid fragmentation? What is the challenge to that?

Task 3: Hardware Configurations and Interfacing Your OS must provide a way for you to interact with your hardware. Your OS must also provide a way for you to modify existing hardware settings. All of this adds to up to what we call the OS Kernel.

OS Kernel An operating system kernel is the “nucleus” of the entire operating system. It is a collection of all of your programs that make an operating system run like its supposed to. A kernel is abstract. This is not a piece of hardware or software. It is all the essentials that make up your operating system. The OS kernel has full control over processes, I/O functions, memory management, and communicating with all devices connected to your OS.

Lab 2: OS analysis Windows Apple / MAC Linux