You are on page 1of 6

Applied Operating System

MODULE 1 – IT0035

WHAT IS AN OPERATING SYSTEM? 2. Program Execution – The OS must have the


capability to load a program into memory
An Operating System (OS) is a program or
and execute that program.
system software that acts as an interface between
3. File System Manipulation – Programs need
the user and the computer hardware and controls
has to be read and then write them as files
the execution of all kinds of programs.
and directories. File handling portion of OS
It is not possible for the user to use any computer also allows users to create and delete files by
or mobile device without having an operating specific name along with extension, search
system. for a given file and / or list file information.
4. Input / Output Operations – A program
Goals of Operating System
which is currently executing may require I/O,
1. Execute user programs and make solving user which may involve file or other I/O device.
problems easier. The OS is responsible for reading and/or
2. Make the computer system convenient to use. writing data from I/O devices such as disks,
3. Use the computer hardware in an efficient tapes, printers, keyboards, etc.
manner. 5. Communication – Process needs to swap
over information with other process.
COMPONENTS OF A COMPUTER SYSTEM
Processes executing on same computer
❖ Computer hardware – CPU, memory and system or on different computer systems can
I/O devices, provides the basic computing communicate using operating system
resources. support.
❖ Application programs – are used to solve 6. Resource Allocation – The OS manages the
the computing problems of the users such as different computer resources such as CPU
word processors, games and business time, memory space, file storage space, I/O
programs. devices, etc. and allocates them to different
❖ Users – who utilize a computer or network application programs and users.
service trying to solve different problems. 7. Error Detection – The operating system
❖ Operating Systems – controls and should be able to detect errors within the
coordinates the use of the hardware among computer system (CPU, memory, I/O, or user
the various application programs for the program) and take the appropriate action.
various users. 8. Job Accounting – OS keeps track of time
and resources used by various tasks and
COMMON SERVICES OFFERED BY ALMOST ALL
users, this information can be used to track
OPERATING SYSTEMS:
resource usage for a particular user or group
1. User Interface (UI) – refers to the part of an of users.
OS, or device that allows a user to enter and 9. Security and Protection
receive information. ➢ Protection is any mechanism for
• Types of UI: controlling access of processes or users
o Command Line Interface to resources defined by the OS.
o Batch based interface ➢ Security is a defense of the system
o Graphical User Interface against internal and external attacks
Applied Operating System
MODULE 1 – IT0035

(denial-of-service, worms, viruses, switches occur so frequently. Thus, the


identity theft, theft of service) user can receive an immediate
response. Response time should be < 1
WHAT IS A KERNEL? second
Kernel is the central part of an OS which manages • Each user has at least one program
system resources and is always resident in executing in memory
memory. It also acts like a bridge between • If several jobs ready to run at the same
application and hardware of the computer. It is time -> CPU scheduling
also the first program that loads after the • If processes don’t fit in memory,
bootloader. swapping will take place
Bootloader is a program that loads and starts the • Examples: Unix, Linux, Multics and
boot time tasks and processes of an OS. It also Windows
places the OS of a computer into memory. 3. Distributed Operating System
• Distributed systems use multiple
TYPES OF OPERATING SYSTEM central processors to serve multiple
Operating systems are there from the very first real-time applications and multiple
computer generation and they keep evolving with users. Data processing jobs are
time. distributed among the processors
accordingly.
Types of operating systems which are most • The processors communicate with one
commonly used: another through various
1. Batch Operating System communication lines (such as high-
• The user of a BOS never directly speed buses or telephone lines). These
interacts with the computer. are referred as loosely coupled systems
• Every user prepares his or her job on an or distributed systems. Processors in a
offline device like a punch card and distributed system may vary in size and
submit it to the computer operator. function. These processors are referred
• To speed up processing, jobs with as sites, nodes, computers, and so on.
similar needs are batched together and • Examples: Telecom Network, WWW,
run as a group. Cloud Computing, etc.
• The programmers leave their programs 4. Network Operating System
with the operator then operator sorts • A NOS runs on a server and provides
the programs with similar the server the capability to manage
requirements into batches. data, users, groups, security,
2. Time-sharing Operating Systems applications, and other networking
• Time-sharing or multitasking is logical functions.
extension in which CPU switches jobs • The primary purpose of the network
so frequently that users can interact operating system is to allow shared file
with each job while it is running, and printer access among multiple
creating interactive computing. computers in a network, typically a
• Multiple jobs are executed by the CPU local area network (LAN), a private
by switching between them, but the network or to other networks.
Applied Operating System
MODULE 1 – IT0035

• Examples: Microsoft Windows Server × CPU moves data from/to main memory
2003, Microsoft Windows Server 2008, to/from local buffers.
UNIX, Linux, Mac OS X Server, Novell × I/O is from the device to local buffer of
NetWare, and BSD/OS (Berkeley controller.
Software Design) × Device controller informs CPU that it has
5. Real-time Operating System finished its operation by causing an interrupt.
• RTOS is an operating system intended
to serve real-time systems/applications What is an Interrupt?
that process data as it comes in, mostly › Interrupt is a signal emitted by hardware or
without buffer delay. software when a process or an event needs
• The time interval required to process immediate attention.
and respond to inputs is very small. › It alerts the processor temporarily to a high
This time interval is called response priority process requiring interruption of the
time. current working process and then return to
• Real-time systems are used when there its previous task.
are time requirements are very strict › Types of Interrupts:
like missile systems, air traffic control o Hardware Interrupt
systems, robots, etc. o Software Interrupt
• Examples: LynxOS, OSE, QNX, RTLinux, › An operating system is interrupt driven.
VxWorks, Windows CE
6. Handheld Operating System HARDWARE INTERRUPT
• It is also known as Mobile OS which is → A signal created and sent to the CPU that is
built exclusively for a mobile device, caused by some action taken by a hardware
such as a smartphone, personal device.
digital assistant (PDA), tablet, → Example: When a key is pressed or when
wearable devices or other embedded the mouse is moved.
mobile OS.
• Examples: Android, Symbian, iOS, SOFTWARE INTERRUPT
BlackBerry OS and Windows Mobile → Arises due to illegal and erroneous use of
an instruction or data. It often occurs when
COMPUTER SYSTEM ORGANIZATION an application software terminates or when
× One or more CPUs, device controllers connect it requests the operating system for some
through common bus providing access to service.
shared memory. → Example: stack overflow, division by zero,
× Concurrent execution of CPUs and devices invalid opcode, etc. These are also called
completing for memory cycles. traps.
× I/O devices and the CPU can execute
INTERRUPT HANDLING
concurrently.
× Each device controller is in charge of a The operating system preserves the state of the
particular device type CPU by storing registers and the program counter.
× Each device controller has a local buffer. Determines which type of interrupt has occurred:
Applied Operating System
MODULE 1 – IT0035

➢ Polling – operating system sends signal to × Most systems have special-purpose


each devices asking if they have a request. processors as well
➢ Vectored Interrupt System - requesting × Multiprocessors systems growing in use and
device sends interrupt to the operating importance
system. o Also known as parallel systems or
Separate segments of code determine what action tightly-coupled systems
should be taken for each type of interrupt. o Advantages include:
▪ Increased throughput
Operating System Operators ▪ Economy of scale
› Dual-mode operation allows OS to protect ▪ Increased reliability – graceful
itself and other system components degradation of fault tolerance
× User mode and kernel mode o Two types:
× Mode bit provided by hardware ▪ Asymmetric Multiprocessing
• Provides ability to distinguish when ▪ Symmetric Multiprocessing
system is running user code (1) or kernel
MULTIPROCESSOR SYSTEMS
code (0)
• Some instructions designated as Advantages:
privileged, only executable in kernel 1. Increased throughput. Increasing the
mode number of processor, expect to get more
• System call changes mode to kernel, work done in less time.
return from call resets it to user. 2. Economy of Scale. It can cost less than
• A system call is a way for programs to equivalent multiple single-processor
interact with the OS. A computer systems because they can share
program makes a system call when it peripherals, mass storage and power
makes a request to the OS‘s kernel. supplies.
3. Increased Reliability. Functions can be
PROCESSOR SYSTEM distributed properly among several
Single-Processor System processors. If one processor fails, the other
› There is one main CPU capable of executing processor can pick-up the task.
a general-purpose instruction set, including The multiprocessor systems in use today are of
instructions from user processes. two types:
1. Asymmetric Multiprocessing. Each
Multiprocessor System
processor is assigned a specific task. A boss
› Also known as parallel-system or
processor controls the system and the
multicore.
other processors either look to the boss for
› First appeared in servers and now in
instructions or have predefined tasks.
smartphones and tablet computers.
Boss-worker relationship.
COMPUTER SYSTEM ARCHITECTURE 2. Symmetric Multiprocessing (SMP). The
× Most systems use a single general-purpose most commonly used. In which each
processor (PDAs through mainframes) processor performs all tasks within the
Applied Operating System
MODULE 1 – IT0035

operating system. All processors are • Home networks


peers and no boss-worker relationship. → Used to be single system, then
modems
The difference between symmetric and
→ Now firewalled, networked
asymmetric may result from either hardware or
• Mobile computing
software.
→ Refers to computing on handheld
× A recent trend in CPU design is to include smartphones and tablet
multiple computing cores on a single chip. computers.
Such multiprocessor systems are termed • Distributed system
multicore. They can be more efficient than → It is a collection of physically
multiple chips with single core. separate, possibly heterogeneous
× A dual-core design with two cores on the computer systems that are
same chip. Each core has its own register set networked to provide users with
as well as its own local cache access to the various resources that
the system maintains.
CLUSTERED SYSTEMS
→ Network operating system is an
› Like multiprocessor systems, but multiple
operating system that provides
systems working together.
services across the network.
› Usually sharing storage via a storage-area
• Client-Server Computing
network (SAN)
→ Dumb terminals succeeded by
› Provides a high-availability service which
smart PCs
survives failures
→ Many systems now servers,
o Asymmetric clustering has one
responding to requests generated
machine in hot-standby mode
by clients
o Symmetric clustering has multiple
o Compute-server provides
nodes running applications, monitoring
an interface to client to
each other
request services (i.e.
› Some clusters are for high-performance
database)
computing (HPC)
o File-server provides
COMPUTING ENVIRONMENT interface for clients to store
› Traditional computer – blurring over time and retrieve files.
• Office environment › Another model of distributed system
→ PCs connected to a network, › P2P does not distinguish clients and servers
terminals attached to mainframe or • Instead all nodes are considered peers
minicomputers providing batch • May each act as client, server or both
and timesharing • Node must join P2P network
→ Now portals allowing networked → Registers its service with central
and remote systems access to lookup service on network, or
same resources → Broadcast request for service and
respond to requests for service via
discovery protocol
• Examples: Napster and BitTorrent
Applied Operating System
MODULE 1 – IT0035

› Virtualization
• It is a technology that allows operating
systems to run as applications within OPEN-SOURCE OPERATING SYSTEM
other operating system. × Open Source operating systems are
• It is one member of the class software released under a license where the copyright
that also includes emulation. Emulation holder allows others to study, change as well
is used when the source CPU type is as distribute the software to other people.
different from the target CPU type. × Counter to the copy protection and Digital
• Example: virtual machine, Rights Management (DRM) movement.
OracleVirtualBox × Started by Free Software Foundation (FSF),
› Cloud Computing which has “copyleft” GNU Public License
• It is a type of computing that delivers (GPL)
computing, storage and even × Examples: GNU (GNU’s Not Unix) / Linux,
applications as a service across a BSD UNIX (including core of Mac OS X), and
network. Sun Solaris
• It is a logical extension of virtualization
→ Public Cloud – cloud available via
the Internet
→ Private Cloud – cloud run by a
company for that company’s own
use
→ Hybrid Cloud – cloud that includes
both public and private
› Cloud Computing Service Models
• Software as a Service (SaaS) – one or
more applications available via the
Internet
• Platform as a Service (PaaS) – software
stack ready for application use via the
Internet
• Infrastructure as a Service (IaaS) –
servers or storage available over the
Internet.
Platform Type Common Examples
Google Apps, Dropbox, Salesforce,
SaaS
Cisco WebEx, Concur, GoToMeeting
AWS Elastic Beanstalk, Windows Azure,
PaaS Heroku, Force.com, Google App
Engine, Apache Stratos, OpenShift
DigitalOcean, Linode, Rackspace,
Amazon Web Services (AWS), Cisco
IaaS
Metapod, Microsoft Azure, Google
Compute Engine (GCE)

You might also like