Difference between revisions of "Operating Systems"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Functions of Operating System)
Line 11: Line 11:
 
An operating system is a medium that allows the user to control a computer using it's features
 
An operating system is a medium that allows the user to control a computer using it's features
 
=Functions of Operating System=
 
=Functions of Operating System=
 +
In simple terms the main functions of an operating system are:
 +
 
* Read, write and store data
 
* Read, write and store data
 
* Configure the computer
 
* Configure the computer
 
* Interact with programs
 
* Interact with programs
 
* Interact with input devices
 
* Interact with input devices
==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.
+
However you need to know the following detailed functions of an operating system:
 +
 
 +
==Creating a Virtual Machine / Hide Complexity==
 +
The Operating System creates a virtual machine that accepts a set of instructions. This will hide the complexity of the actual hardware and allow developers to create software to run on the virtual machine, and manufacturers to ensure their hardware is compatible with the virtual machine.
 +
 
 +
Software written for the virtual machine can be used on any device running the same machine. Imagine if a games developer had to create a version of their game for each graphics card in use. Or if Microsoft had to create a different version of Word for each printer or keyboard in use.
 +
 
 +
Device Drivers are used to interpret between the virtual machine and the actual hardware. They take instructions from the virtual machine and convert them into code to control the specific device. So each printer, graphics card, keyboard could require their own driver to be installed. Often manufacturers will package drivers together so that a series of printers use the same driver. Also manufacturers use off the shelf components so a driver is often written for a specific graphics chipset which works for all graphics card which use the chipset.
 +
 
 +
The virtual machine executes intermediate code and emulates a standard hardware environment.
  
 
==Resource Management==
 
==Resource Management==

Revision as of 13:28, 6 January 2019

Overview

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

TRC PowerPoint

Operating Systems

Definition

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

Functions of Operating System

In simple terms the main functions of an operating system are:

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

However you need to know the following detailed functions of an operating system:

Creating a Virtual Machine / Hide Complexity

The Operating System creates a virtual machine that accepts a set of instructions. This will hide the complexity of the actual hardware and allow developers to create software to run on the virtual machine, and manufacturers to ensure their hardware is compatible with the virtual machine.

Software written for the virtual machine can be used on any device running the same machine. Imagine if a games developer had to create a version of their game for each graphics card in use. Or if Microsoft had to create a different version of Word for each printer or keyboard in use.

Device Drivers are used to interpret between the virtual machine and the actual hardware. They take instructions from the virtual machine and convert them into code to control the specific device. So each printer, graphics card, keyboard could require their own driver to be installed. Often manufacturers will package drivers together so that a series of printers use the same driver. Also manufacturers use off the shelf components so a driver is often written for a specific graphics chipset which works for all graphics card which use the chipset.

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.

Interrupt 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.