Worksheet cs
Worksheet cs
Figure 5: Multitasking
Memory Management Memory Management
The OS is responsible for managing memory between various processes run by ii. Paging
the CPU. The memory is shared efficiently between the processes. When
Alternatively, the memory can also be split into equally sized blocks called
multiple processes are being run, the OS makes sure that each process has its
pages. The information for which page is allocated to which process is
data and instructions stored in a different memory location. Hence, the
maintained in a table.
processes do not interfere with each other. In cases where processes need to
share some data, these data are stored in a shared location.
Consider four processes running at the same time and being allocated memory
A, B, C and D. A scenario, as described in the following figure, takes place.
Figure 8: Paging
An operating system may use both of these methods to manage memory.
Figure 7: Segmentation
Control of input-output devices File Management Systems
The peripheral devices are controlled using protocols and device drivers. Files in the storage drive are organised and managed by the OS. In order to
access a file, the OS needs to know the location of the file. To retrieve data
• Protocol
from the file, an OS needs to know the organisation structure, amount of data
The peripheral devices connected to the computer are programmed with in the file and the protocol needed to communicate with the file system.
machine code. This code describes the way data is to be transferred between
The OS manages the way data is organised into files. Windows File Explorer is a
the device and the computer. A protocol is made to control and communicate
program that manages the file system in Windows. The OS organises the
with the device.
location and structure of the file system. It also determines how files are
• Device drivers stored, deleted, read and repaired.
A device driver manages the connection with a peripheral device. This handles Each file has a unique name and the OS maintains a look-up table that contains
the different requests between a computer and a device. It is responsible for the information about the location of all the files. Files are stored in a
defining the processes to store outgoing data and incoming messages. A device hierarchical system, as shown in the figure below.
driver wakes up the device only when it is necessary. When the device is idle
for more than a specified time, the driver puts the device into sleep mode.
An OS is equipped with generic device drivers but some devices require the
installation of its device drivers. A single driver is enough to control multiple
peripherals using the same protocol. In cases where multiple peripherals are
connected, the data related to each device is stored in a different location to
make sure that the processes do not interfere with each other.
A differential backup only saves those files that are new or have changed • Encryption
since the last full back-up procedure. This back-up procedure is faster than a The data is encrypted when it is stored or when it is sent over a network. This is
full backup procedure but is slower than an incremental back-up procedure. done to protect the data from unauthorised access.
Space required to perform differential backup is more than that of • Anti-virus software
incremental backup as some duplicate copies of files are stored. Still, the
space required is less compared to a full backup. The restoration process is Anti-virus software detects malware and blocks its operation. This type of
software safely removes any file that could be a threat to the system.
faster compared to an incremental backup but is slower compared to a full
backup.
• Firewall
A firewall establishes a barrier between a trusted internal network and
Activity 1
untrusted external networks. It prevents unauthorised web users and malicious Duration: 10 minutes
software from gaining access to private networks connected through the
Internet. List the functions of an operating system.
Software that enables user to perform a The physical parts of a computer system like
Application software Hardware
specific task. hard-disk drive, CD-Drive, etc.
A utility that reassembles a file that is stored A multitasking OS allows to user to perform
Disk Multitasking
in various fragments in different clusters of more than one task at a time.
defragmentation
the disk.
Software that runs in the background of a
The process of modifying data such that it is computer system and acts as an interface
Operating system
Encryption non-understandable by users with between the user and important
unauthorised access. applications.
The memory is split into equally sized blocks
Pages called pages, which can be allocated to
processes.
Peripheral
Hardware that is connected to the computer Mind map
like keyboard, mouse, etc.
20