Professional Documents
Culture Documents
04 Os
04 Os
• Types of Software
– Application Software
• Education and Reference software: Programs that help teach new material
and ideas, and programs that can be used to find information : Encarta,
Worldbook Encyclopedia.
• Entertainment software
Difference between OS and User Software
– Operating system
• Controls and coordinates use of hardware among various
applications and users
– Users
• People, machines, other computers
Four Components of a Computer System
Interface
• Interface:
• shell when it is text based
• GUI (Graphical User Interface)
• Examples:
• Windows, Linux,
Functions of Operating System
• Abstraction
– User performs File I/O not disk I/O
– The architecture of a computer system of most computers is difficult
to program at the machine language level, especially for I/O
– Example:
• I/O Of Floppy Read Write Command
• Requires 13 parameters, packed into 9 bytes.
• Status of Motor (On or Off) should also be considered
Functions of Operating System
• Since we have an already written library, namely the OS, to add two numbers
we simply write the following line to our program:
• c=a+b;
• in a system where there is no OS installed, we should consider some
hardware work as:
• (Assuming an MC 6800 computer hardware)
• Security
– For security, modern operating systems employ a firewall. A
firewall is a type of security system that monitors all computer
activity and blocks it if it detects a threat.
• Memory Management
– It is the management of the main or primary memory. Whatever program is executed, it
has to be present in the main memory.
– Main memory is a quick storage area that may be accessed directly by the CPU. When
the program is completed, the memory region is released and can be used by other
programs. Therefore, there can be more than one program present at a time. Hence, it is
required to manage the memory.
– A file system is a collection of directories, subdirectories, and files organized in a logical
order.
– The OS is responsible for maintaining the file system through indexing of filenames and
their disk location.
Functions of Operating System
• Processor Management/Scheduling
– Every software that runs on a computer, whether in the background
or in the frontend, is a process. Processor management is an
execution unit in which a program operates. The operating system
determines the status of the processor and processes, selects a job
and its processor, allocates the processor to the process, and de-
allocates the processor after the process is completed.
– When more than one process runs on the system the OS decides
how and when a process will use the CPU. Hence, the name is
also CPU Scheduling. Certain algorithms used for CPU scheduling are
as follows:
• First Come First Serve (FCFS)
• Shortest Job First (SJF)
• Priority-based scheduling etc.
Functions of Operating System
• Booting process
– The process of starting or restarting a computer is referred to as
Booting. Cold booting occurs when a computer is totally turned
off and then turned back on. Warm booting occurs when the
computer is restarted. The operating system (OS) is in charge of
booting the computer.
Types of Operating Systems
• Single user/single-tasking
• Single-user/multitasking
• Multi-user/multitasking
Single-User, Single Task
• Most popular OS
• https://www.geeksforgeeks.org/generations-of-computers-computer-fundamentals/