The Functions of Operating Systems Desktop PC Operating Systems.

Slides:



Advertisements
Similar presentations
Chapter 4 Storing Information in a Computer Peter Nortons Introduction to Computers.
Advertisements

CT213 – Computing system Organization
Lectures on File Management
Operating System.
Part IV: Memory Management
Free Space and Allocation Issues
SEMINAR ON FILE SLACK AND DISK SLACK
Allocation Methods - Contiguous
Chapter 10: File-System Interface
File System Analysis.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
File Management Systems
MCT260-Operating Systems I Operating Systems I Introduction to Operating Systems.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Operating Systems.
FUNCTIONS OF OPERATING SYSTEMS Interfaces Memory Management Security Utility Interrupt Handling.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
Chapter 5 Basic Input/Output System (BIOS)
Basic Input Output System
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-7 Memory Management (1) Department of Computer Science and Software.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 2 How an OS Works with Hardware and Other Software.
Computing Higher - Unit 1 - Computer Systems: Topic 7: Computer Software 1 Systems Software System software controls the actual operation of the computer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating Systems. Without an operating system your computer would be useless! A computer contains an Operating System on its Hard Drive. This is loaded.
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.
Introduction to Hard Drives Chapter 6 - Key Terms Information Compiled by Diane Ferris, Michele Henderson & Vicki Kertz.
Bits, Bytes, Files, Hard Drives. Bits, Bytes, Letters and Words ● Bit – single piece of information ● Either a 0 or a 1 ● Byte – 8 bits of information.
File System Implementation Chapter 12. File system Organization Application programs Application programs Logical file system Logical file system manages.
Operating System Basics section 6A. This lesson includes the following sections: Running Programs Managing Files Managing Hardware Utility Software.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
OSes: 11. FS Impl. 1 Operating Systems v Objectives –discuss file storage and access on secondary storage (a hard disk) Certificate Program in Software.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Higher Systems Computer Software. Operating System (O/S) ► The O/S controls the computer. It controls communication with peripheral devices. It loads.
The Operating System ICS3M.  The operating system (OS) provides a consistent environment for other software programs to execute commands.  It gives.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
Electronic Analog Computer Dr. Amin Danial Asham by.
Lecture 18 Windows – NT File System (NTFS)
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
Memory management The main purpose of a computer system is to execute programs. These programs, together with the data they access, must be in main memory.
Systems Software / The Operating System CSC October 14, 2010.
Operating Systems c. define and explain the purpose of scheduling, job queues, priorities and how they are used to manage job throughput; d. explain how.
Nat 4/5 Computing Science Software
Memory Management.
Operating System Review
Chapter 11: File System Implementation
Operating System.
Chapter 12: File System Implementation
Chapter 11: File System Implementation
I/O Resource Management: Software
Operating Systems (CS 340 D)
Introduction of microprocessor
Introduction to Computers
Operating Systems What are they and why do we need them?
Operating System Review
Chapter 11: File System Implementation
Chapter 11: File System Implementation
Device management How does the operating system manage the hardware and peripheral devices? Device Driver: Each device is attached to your computer with.
Main Memory Background Swapping Contiguous Allocation Paging
Operating System Review
Operating Systems Tasks 17/02/2019.
Modern PC operating systems
Chapter 11: File System Implementation
Department of Computer Science
Presentation transcript:

The Functions of Operating Systems Desktop PC Operating Systems

Learning Objectives Describe the main components of a typical desktop PC operating system. Define the terms boot file and a file allocation table (FAT).

Main components of a typical desktop PC operating system HCI Type / allow communication. Type / allow communication. Utility programs Routines that the OS makes available to the user. Routines that the OS makes available to the user. Hardware control/Input and Output Software routines to control the hardware/device drivers Software routines to control the hardware/device drivers Multi tasking capability Allows different Windows/user can carry on more than one task at a time. Allows different Windows/user can carry on more than one task at a time.Spooling Queue jobs for input / printing / … Queue jobs for input / printing / …

Main components of a typical desktop PC operating system Security Ensure that different users can keep files confidential. Ensure that different users can keep files confidential. Host software Scheduler to schedule instructions. Scheduler to schedule instructions. Memory management To allocate memory to data/software. To allocate memory to data/software. Interrupt handling Schedule jobs through the system. Schedule jobs through the system.Translators Produce object code. Produce object code.

Boot Program A file containing commands to automatically configure a personal computer on start up. Stored on the ROM as it is unchangeable. Power-up process: POST (power on self-test) POST (power on self-test) The boot program then retrieves user-defined / configurable / changeable parameters stored in the boot file / Basic Input Output System (BIOS) and uses them to configure the system. The boot program then retrieves user-defined / configurable / changeable parameters stored in the boot file / Basic Input Output System (BIOS) and uses them to configure the system. Note the BIOS in a PC is also known as autoexec.bat or config.sys. Finally it loads the first instruction of the operating system into memory. Finally it loads the first instruction of the operating system into memory.

Format A routine that is part of the OS which enables the OS to store and search for files in sectors on a disk. Disk Structure (A) Track (A) Track (B) Geometrical or mathematical Sector (B) Geometrical or mathematical Sector (C) Track Sector / Computing Sector / Disk Sector (C) Track Sector / Computing Sector / Disk Sector (D) Cluster (D) Cluster 2 or more track sectors.

Sector / Disk sector The word ‘sector’ in computing is used to mean a ‘track sector’. Mathematically a sector is a ‘slice of the pie’ but in computing a sector means a ‘track sector’. Mathematically a sector is a ‘slice of the pie’ but in computing a sector means a ‘track sector’. A sector is the smallest physical / accessible amount of data on a medium. It is possible to think of a sector as a block but the word block in computing means data chunks of varying sizes in data streams so it is not used here. It is possible to think of a sector as a block but the word block in computing means data chunks of varying sizes in data streams so it is not used here.

Clusters A unit of disk space allocated for files and directories. The smallest logical amount of disk space that can be allocated to hold a file. Large clusters means small files will waste disk space called ‘slack space’. Large clusters means small files will waste disk space called ‘slack space’. However, large cluster sizes reduces bookkeeping overhead and fragmentation, which may improve reading and writing speed overall. However, large cluster sizes reduces bookkeeping overhead and fragmentation, which may improve reading and writing speed overall. So a balance is required usually meaning that a cluster is around the size of an average file. So a balance is required usually meaning that a cluster is around the size of an average file.

File Allocation Table (FAT) Enables the OS to find files on a disk and to be able to store user's files. i.e. Maintain and manage disk space used for file storage. i.e. Maintain and manage disk space used for file storage. Uses linked lists to point to the blocks on the disk that contain each file (each linked list contains the addresses of each memory block that contains the file in question, if followed the file “units” will be found in the same order as the original file). However, to find the first file “unit” a “Root Directory” table is used, this lists the files and their starting clusters. See next few slides for diagrams and more detailed explanations. See next few slides for diagrams and more detailed explanations.

A typical FAT Root Directory table Filename Starting Cluster File12 File24

File Allocation Table (FAT) (map to each cluster on the volume) The first column gives the cluster number and the second column is a pointer to the next cluster used to store a file. The last cluster used has a null pointer (usually FFFFH) to indicate the end of the linking. The directory entry for a file has a pointer to the first cluster in the FAT table. The diagram shows details of two files stored on a disk. Note the actual contents of each cluster (the ‘parts’ of each file) is not shown here. Only the pointer to the next ‘part’ of the file.

Storage Clusters on a disk In order to find a file, the OS looks in the directory for the filename and, if it finds it, the OS gets the cluster number for the start of the file. The OS can then follow the pointers in the FAT to find the rest of the file.

Opening a file 1.Find the filename in the FAT Root Directory table. 2.Look up the Starting Cluster. 3.Go to that cluster and retrieve the data. 4.Go to the FAT table and find the starting cluster and then look up the Pointer Cluster. 5.Go to that cluster and retrieve the data (combining it with previous data for the file). 6.Repeat steps 3 – 5 until a null pointer is found (which indicates the end of the file).

File Allocation Table (FAT) Unused clusters have a zero entry pointer. When a file is deleted, the clusters that were used to save the file are set to zero pointer. In order to store a new file, the OS finds the first cluster with a zero pointer entry and enters the cluster number in the directory table. OS searches linearly for clusters with zero pointer entries to set up the linked list (entering the pointer to the next cluster in the previously used cluster entry in the FAT table).

Speed Using linear searches will take a long time. However, the FAT table is normally loaded into RAM so that continual disk accesses can be avoided. Speeds up the search of the FAT. Speeds up the search of the FAT.

Plenary What is a boot file and a file allocation table (FAT)?

Plenary A boot file: A file containing commands to automatically configure a personal computer on start up. A file allocation table (FAT): A list held on disk by an operating system to maintain and manage disk space used for file storage.

Plenary How does a PC operating system use a file allocation table to store and find files when necessary?

Plenary The disk surface must be divided up into small areas. Files are stored in these small areas. Each file will normally use more than one area The table of files has an entry pointing to the first area on the disk surface used by that file and a pointer to the next area. Each subsequent area has a pointer to the next area, as in a linked list with a null value to signify the end of the file.