OS - Operating System
OS - Operating System
Operating System
• An operating system is the most important software on a computer. It
is responsible for managing the computer's hardware and software
resources, and providing a platform for application programs to run
on.
• The operating system acts as an intermediary between the user and
the computer hardware. It hides the complexity of the hardware from
the user, and provides a simple and easy-to-use interface for
interacting with the computer.
Operating System
For example, Windows includes BitLocker encryption and the Windows Defender Firewall.
macOS includes FileVault encryption and the macOS Firewall.
In addition to the built-in security features provided by the operating system, users can also
install additional security software, such as antivirus programs and anti-malware programs.
Drive/disk management:
The operating system is responsible for managing computer drives and dividing disks into partitions. The
operating system also provides file management features, such as creating, deleting, and modifying files.
User interface:
The user interface is the part of the operating system that allows users to interact with the computer. The user
interface may be a graphical user interface (GUI) or a command-line interface (CLI).
Process management:
The operating system is responsible for managing the execution of programs. This includes allocating resources
to programs, scheduling them to run on the CPU, and ensuring that they run safely and correctly.
Allocation of resources:
The operating system is responsible for allocating system resources to programs, such as CPU time, memory,
and disk space. The operating system must ensure that all programs have the resources they need to run, but it
must also prevent programs from using too many resources and harming other programs.
These are just some of the essential functions of an operating system. Operating systems are complex pieces of
software that perform many other important tasks, such as networking, device management, and error handling.
P rovid ing a U ser Interface
When you work on a computer; you see and use a set of items on the screen. These items
are called the user interface.
• These graphical tools represent different types of commands. The GUI enables you to
issue commands to the computer by using visual objects instead of typing
commands. This is one of the key advantages of a graphical user interface; it frees
you from memorizing and typing text commands.
A graphical user interface (GUI) is a way of interacting with a computer
using images and objects instead of text commands
Users can use the mouse or keyboard to click on buttons, drag and drop
icons, and type text into fields
GUIs are commonly used in operating systems, web browsers, and
other software applications
GUIs are commonly used in operating systems, web browsers, and other software applications
Some examples of GUI operating systems include Windows, macOS, and Linux. Some examples of GUI web
browsers include Chrome, Firefox, and Edge.
Some examples of GUI software applications include Microsoft Office, Adobe Photoshop, and VLC Media Player
2 Command-Line Interfaces
• In command line interface, you write commands rather than graphical
objects to execute tasks.
GUIs use a variety of resources, such as CPU time, memory, and disk space. CPU
time is needed to render the graphical elements of the user interface and to handle
user input. Memory is needed to store the graphical elements and the state of the user
interface. Disk space is needed to store the GUI software itself, as well as any fonts,
images, and other resources that the GUI needs.
CLIs, on the other hand, are much simpler and less resource-intensive. CLIs
typically only need a small amount of CPU time and memory to run. CLIs also do
not require any disk space
Examples of Operating Systems
▪ Windows
▪ Linux
▪ Mac OS
▪ Ubuntu
▪ Android
▪ iOS
G oals of Operating System
• Memory management
• Process management
• File management
• Standard means of communication between User and
Computer
M emory M anagement
• Memory management refers to management of Primary Memory or Main
Memory. Main memory is a large array of words or bytes where each
word or byte has its own address
• Main memory provides a fast storage that can be accessed directly by the
CPU
• For a program to be executed, it must in the main memory
• An Operating System does the following activities for memory
management
M emory M anagement
• Keeps tracks of primary memory, i.e., what part of it are in use by whom,
what part are not in use
• In multiprogramming, the OS decides which process will get memory
when and how much.
• Allocates the memory when a process requests it to do so.
• De-allocates the memory when a process no longer needs it or has been
terminated
P rocess M anagement
• A file system is normally organized into directories for easy navigation and
usage.
• These directories may contain files and other directions
• An Operating System does the following activities for file management −
• Keeps track of information, location, uses, status etc. The collective
facilities are often known as file system.
• Decides who gets the resources.
• Allocates the resources.
• De-allocates the resources
Operating System Services
▪ User Interface
▪ Allows the user to interact with the
computer.
▪ Command line interface (Terminal)
▪ Graphical user interface
▪ Program Execution
▪ Load the program into memory
▪ Execute the program.
T ypes of Operating System
▪ Multiprogramming OS
▪ Multiprocessing OS
▪ Distributed OS
B atch Operating System
▪ The users of a batch operating system do not interact with the computer directly.
▪ Each user prepares his job on an off-line device like punch cards and submits it to the
computer operator.
Job2
Job3
Job4
512mb
M u ltitasking (T ime Sh aring)
▪ A time sharing operating system allows many users to share the computer
simultaneously.
• Just to make it easy to remember, both multiprogramming and multitasking
operating systems are (CPU) time sharing systems. However, while in
multiprogramming (older OSs) one program as a whole keeps running until it
blocks, in multitasking (modern OSs) time sharing is best manifested because
each running process takes only a fair quantum of the CPU time.
T h ings to
rememb er!
M ultiprocessing
▪ Multiprocessing is the use of two or more central processing units (CPUs) within a single
computer system.
▪ The term also refers to the ability of a system to support more than one processor or the
ability to allocate tasks between them.
▪ I/O Operations
▪ File system manipulation
▪ Creation, deletion, search
▪ Resource Allocation
B IOS(B asic Input Output System)
▪ BIOS sets the machine in a state so that the operating system can be loaded , executed
and given control of a PC.
Important T erms and D efinitions
▪ Bootloader
▪ Called by BIOS
▪ Initializes the OS during start up.
▪ It is stored in the ROM.
▪ It must know how to load the OS and start executing that system.
▪ It must locate and load OS kernel into memory.
▪ Process
▪ In computing, a process is an instance of a computer program that is being executed.
It contains the program code and its activity.
▪ Kernel
▪ A kernel is the central part of an operating system.