OS 1 Introduction Part-I
OS 1 Introduction Part-I
INTRODUCTION
(Part-I)
What is an Operating System?
• A program that acts as an intermediary
between a user of a computer and the
computer hardware.
• Operating system goals:
– Execute user programs and make solving user
problems easier
– Make the computer system convenient to use
– Use the computer hardware in an efficient
manner
Abstract View of Components of Computer
Operating System Definition
• No universally accepted definition
• “Everything a vendor ships when you order an
operating system” is a good approximation
– But varies wildly
• “The one program running at all times on the
computer” is the kernel, part of the operating system
• Everything else is either
– A system program (ships with the operating system, but
not part of the kernel) , or
– An application program, all programs not associated
with the operating system
Computer System Organization
• Computer-system operation
– One or more CPUs, device controllers connect through common
bus providing access to shared memory
– Concurrent execution of CPUs and devices competing for
memory cycles
Storage-Device Hierarchy
How a Modern Computer Works
A von Neumann
architecture
Process Management
• A process is a program in execution. It is a unit of work within
the system. Program is a passive entity; process is an active
entity.
• Process needs resources to accomplish its task
– CPU, memory, I/O, files
– Initialization data
• Process termination requires reclaim of any reusable resources
• Single-threaded process has one program counter specifying
location of next instruction to execute
– Process executes instructions sequentially, one at a time, until
completion
• Multi-threaded process has one program counter per thread
• Typically system has many processes, some user, some
operating system running concurrently on one or more CPUs
– Concurrency
Process Management Activities: The operating system is
responsible for the following activities in connection with process
management:
• Traditional
• Mobile
• Client Server
• Pear-to-Pear
• Cloud computing
• Real-time Embedded
Traditional
Client-Server Computing
• Dumb terminals supplanted by smart PCs
• Many systems now servers, responding to requests generated by
clients
Compute-server system provides an interface to client to
request services
File-server system provides interface for clients to store and
retrieve files
Peer-to-Peer
• Many types
– Public cloud – available via Internet to anyone willing to
pay
– Private cloud – run by a company for the company’s own
use
– Hybrid cloud – includes both public and private cloud
components
– Software as a Service (SaaS) – one or more applications
available via the Internet (i.e., word processor)
– Platform as a Service (PaaS) – software stack ready for
application use via the Internet (i.e., a database server)
– Infrastructure as a Service (IaaS) – servers or storage
available over Internet (i.e., storage available for backup
use)
Real-Time Embedded Systems