Notes Form 1 Operating system
Notes Form 1 Operating system
An operating system also contains instructions that allow you to run application software. A
computer cannot function without an operating system.
User
(Runs application program)
Application software
(Sends user request to OS)
Operating system
(Receives and controls execution of
application requests)
Hardware
(Receives and does OS commands)
1. Processor.
2. Main memory (RAM).
3. Secondary storage devices.
4. Input/Output devices and their Ports.
5. Communication devices and their Ports.
6. Files.
Functions of an Operating System
1. Processor scheduling.
This refers to allocating each job waiting for execution processor time at
each given interval. A computer may have concurrent processes ready for
execution, it is the OS that determines which task will be processed first.
To do this, the OS arranges the tasks according to priority and has the
ability to stop a particular task to allow the processor to service another
task.
2. Memory allocation & loading of programs.
Programs must be loaded into memory before they can be executed or
after execution, and moved out of memory when they are no longer
required.
The computer memory is a scarce resource, and therefore, the OS must
determine which task will remain in memory awaiting for execution and
which one will be sent back to secondary storage to wait.
The OS keeps track of what parts of memory are in use and by which
program, and what parts are free.
The operating system organizes the main memory into blocks of sizes
called page frames. The processes are then equally divided into pieces
that can fit into the frames called pages.
The OS swaps pages between the main memory and the secondary
storage.
3. File management.
The OS is concerned with the logical organization of the information (the
File System) and provides a means through which files can be sorted,
retrieved & shared.
It also provides a means of protecting data files & programs against
unauthorized access and corruption.
4. Resource control and allocation.
The OS controls the selection & operation of hardware devices used for
input, output and storage.
The OS determines which task uses a particular resource and at what time.
To do this, it gives each resource a unique identification number called an
Interrupt Request (IRQ) so that, when two tasks request to use a resource
at the same time, the one with higher priority interrupt is granted control.
This prevents an undesirable situation called deadlock that occurs when a
particular task holds a needed resource & refuses to release it for use by
other tasks.
5. Error handling.
The OS has many ways of reporting to the user of any errors that occur
during program execution. It does this by monitoring the status of the
computer system & performing error checks on both hardware and
software.
When the user makes an error, the OS through the Kernel determines the
cause of the error, and prints diagnostic messages on the screen suggesting
appropriate routines of how the error can be corrected.
In case of a fatal error that cannot be corrected, the program will be
suspended permanently.
6. Interrupt handling.
An Interrupt is a break from the normal sequential processing of
instructions in a program.
Each hardware device communicates to the processor using a special
number called the Interrupt Request number (IRQ). Therefore, when an
interrupt occurs, control is passed to the Kernel, which determines the cause
of the interrupt. The processor stops executing the current program to wait
for the corrective response of the user. Control is returned to the program
that was interrupted once corrective action has been taken.
Some causes of Interrupt.
i). An Interrupt caused by Power failure.
ii). Arithmetic or logic errors.
iii). Hardware malfunction, e.g. parity errors.
7. Interfaces the user to the system’s hardware.
The OS provides quick means of communication between the computer
user & its programs.
The user requests the services of the OS by use of commands & the OS
communicates the messages regarding the processing to the user through,
either the screen or printer.
a) A single user
Allows only one user to run one program at a time. Suppose, for example, you are
typing a memorandum in a word processing program and decide to browse the Web
for more information. If you are working with a single user operating system, you
must quit/exit the word processing program before you can run the Web browser.
Example of single user OS is MS DOS
a) Command line
The user interacts with the computer by typing a command at the prompt found on a
command line. The computer reads the instruction from the command line and
executes them example include MS DOS ,PC DOS,OS/2
Disadvantages of using command driven interfaces
They are more difficult to learn.
The user must know the command to type.
It is less user-friendly.
It is not easy to use, i.e., one is required to master the command
format/syntax.
The user is presented with a choice and therefore, does not need to master
any commands.
They are easier to use.
Types of files
System file – contain information that is critical for the operation of the
computer example include config.sys, io.sys etc
Application file – hold programs and are executable e.g. win98.exe
Data file – contain user specified data e.g. sgccat1.doc
Functions of files.
√ Storage of data.
√ Organization of information
Subfolders
A large folder may be divided into smaller units called subfolder. Therefore a subfolder or a
subdirectory is a folder/directory within another folder/directory
1. Taskbar.
The Taskbar is the bar located at the bottom of the screen / desktop that
includes the Start button.
(b).Task Manager: This is the plain strip that displays buttons of all
2. Icons.
An Icon is a graphical representation of an element in Windows. It is a
little picture on your screen representing a program, disk drive, file,
folder or any other item.
An Icon can also be described as a pictorial representation of a command.
Examples of icons placed on the desktop include This Pc,Recycle
Bin,Network,User Documents etc
Application Window
A window is a rectangular frame for displaying applications.
The rectangular portion of the screen that displays an open program (file) or
the contents of a folder or disk.
Parts (Features or Properties) of a Window.
A window might contain all or some of the following features: -
The Title bar also provides a way of moving the window to a new position
on the screen.
It contains three tiny buttons found on the right hand corner of the Title bar.
(i). Minimize button – reduces the window to an icon on the Taskbar. To
activate a minimized window, click its icon on the Taskbar.
(ii). Maximize button – enlarges / expands the window to cover the whole
screen.
(iii). Restore button – Appears after the window has been maximized. It is
used to shrink/ change the window to its previous size before it was
maximized.
(iv). Close (or Cancel) button – removes a window or dialog box from the
desktop and quits a program.
2. Menu bar.
It contains a ribbon (list)of commands that can be used to manipulate a
task. It contains commands such as File, Edit, View, Tools, etc for
working in the program window.
A menu is a list of options or commands in a program from where you can
choose any one.
To open a menu, click on its name.
3. Toolbars.
These are bars that contain a set of buttons (shortcuts) for the various
commands in the Menu bar that you click to perform common tasks.
The commands are represented in the form of icons.
The buttons in the Toolbars provide alternatives of using commands in the
Menu bar.
4. Work area.
This is the area where the typing is done in a Word-processor screen.
Note. All Windows based application programs provide the user with a
unique working area suited to that particular application. It contains an
Insertion point which is a blinking vertical bar that appears when you
start a Word processing program. It is sometimes called the Cursor.
It marks the place where text and graphics will appear when typed or
inserted.
5. Status bar.
This is an interactive strip at the bottom of the application window that acts
as a communication link between the user and the operating system.
6. Scroll bars.
These are bars that appear on the right-side (Vertical Scroll bar) or bottom
side (Horizontal Scroll bar) of the window.
They provide a way to move a window up & down or left & right in order
to show information that doesn’t fit in the window.
7. Mouse pointer.
This is an arrow, which appears on your screen if a mouse is installed & is controlled by
moving the mouse. It indicates the area of the screen that will be affected when you
press the mouse button.
The pointer usually appears as an arrow, but it can change shape depending
on its present location and the task one is performing.
v. Moving files/folders
Refers to moving files and folders to another location.
Procedure
a) Using My computer icon right click
b) From the drop down list click on Explorer.
c) From the explorer window on the edit menu, click cut
d) Select the drive or folder where you want the item to be copied.
e) From the edit menu click Paste.
a) One should not attempt to delete system and application files from the hard disk.
b) Items deleted from removable storage are not held in the recycle bin and are completely
lost.
Restoring deleted files and folders from the recycle bin to its original location proceed as follows
a) Double click the recycle bin Icon.
b) Select the deleted item (or items) to be restored.
c) Click on file and then restore
Functions of a file
i. Storage of data
ii. Organization of information
Warning!
Do not attempt these operations on disks without the guidance of the teacher. It is preferable to use
the floppy disk rather than the hard disk to perform these operations because some of them can easily
lead to loss of data and information stored on the hard disk.
i. Formatting Disk
Is process of preparing a new disk for use by creating sectors and tracks on the surface of
disk
Procedure
a) Put a new unformatted disk into the floppy drive, USB port for the flash disk etc
b) Double click my computer icon
c) Right click the icon labeled 3 ¼ floppy (A:) or the removable disk then select format
d) Select the disk capacity e.g. 1.44MB for floppy, format type i.e. either quick erase or
full
e) Give the diskettes/flash disk an internal name (label).
f) Click Start to begin formatting.
g) Once the process is over, click close
v. Backing up Data
The tool enables the user to create copies of data and programs on separate storage areas to
avoid losing of data and programs incase the storage device fails.
Procedure to Backing up Data
a) Click the start button, point to programs, Accessories, system tools then click on
Backup
Examples of antiviruses
Norton anti-virus
Escan
MacAfee
Avira.
Avast
Kaspersky
Nod 32