Operating Systems

From TRCCompSci - AQA Computer Science
Revision as of 14:28, 10 June 2018 by Admin (talk | contribs) (Interupt Handling)
Jump to: navigation, search

Overview

https://www.youtube.com/watch?v=QqgPler-YI4&list=PLCiOXwirraUA01kiMeInAiYvVnFhhMMqb

Definition

An operating system is a medium that allows the user to control a computer using it's features

Functions of Operating System

  • Read, write and store data
  • Configure the computer
  • Interact with programs
  • Interact with input devicrs

Creating a Virtual Machine

The Operating System creates a virtual machine that accepts a set of instructions to allow software to be written. Software written for the virtual machine can be used on any device running the same machine. The virtual machine executes intermediate code and emulates a standard hardware environment.

Resource Management

Memory Management

The user can work on several tasks at the same time. Each program, application, and file open must be allocated some memory to use while the computer is running. Some programs and applications are designed to run in the background even though another application has focus. Multitasking is when multiple applications and programs can be open at the same time, the user can then switch between them. Many machines often lack enough actual memory (RAM) and in order to function the operating system uses the hard drive to create virtual memory.

Processor Scheduling

The operating system will need to queue access to the processor if the processor is busy. This will allow the operating system to use the processor efficiently. Some processors have multiple cores, so they can process multiple instructions at a time Users will also multitask and run multiple applications at the same time. Therefore the operating system will need schedule processor to allow them all to run with each application taking its turn and processing in chunks.

Backing Store Management

When files and applications are loaded, they are transferred from backing storage (Hard Drive) into memory. The operating system must maintain a directory of the files stored so they can be quickly accessed. It is important to also know the location of any free space on the backing storage. This will allow files to be saved quickly. The file management system enables a user to create files and folders, copy or move or delete files or folders, files and folders can even be protected from unauthorised access.

Peripheral Management

The operating system will also manage any input/output devices connected to the machine. This will require a device driver to be installed to decode the virtual machine instructions into a format or instructions which the device will understand. When a user sends a file to the printer, the operating system will communicate with the printer to ensure it is switched on and ready to receive file.

Interupt Handling

An interrupt is generated by a device when it needs the processor to do something.

For more information see Interrupts

Creating a User Interface

GUI

GUI or Graphical User Interface is a way of interacting with a computer by using graphics that make the computer easier to use by showing graphical images that the user can use and see making it so that they can direst the computer without having to know all the code that is required to make the computer do that command.

Command Line

A command line is interacting with a computer by imputing commands with a keyboard to make a computer perform tasks.