Operating Systems
Operating Systems
Paper VI
Before we start…
▪ Hardware
– According to Oxford Dictionary, computer
hardware is defined as “The physical
components of a computer or computer
system, including peripheral devices such as
monitors and printers.”
▪ Software
– According to Oxford Dictionary, software is
defined as “The programs and other operating
information used by a computer.”
Types of Software
▪ System Software
▪ Application Software
▪ Utility Software
System Software
▪ Program execution
▪ I/O Operation
▪ File System Manipulation
▪ Communication
▪ Error Handling
▪ Resource Management
▪ Protection
OS as a Resource Manager
▪ Since,
– OS act as an interface between user and
computer
– It is the resource manager of the computer
– It creates the environment in which various
software operates.
▪ It is the most important software in our
computer.
▪ And, generally the first software to be
installed in our computer.
Operating System Classification
▪ New
– The process is being created
▪ Running
– Instructions are being executed
▪ Waiting
– The process is waiting of some event to occur
▪ Ready
– The process is waiting to be assigned to the processor
▪ Terminated
– The process has finished execution
Process State
Process Control Block
Process State
Process Number
Program Counter
Registers
Memory Limits
List of Open Files
…
Process Control Block
▪ Program Counter
– The counter indicates the address of the next
instruction to be executed for this process.
▪ CPU Registers
– The registers vary in number and type,
depending on the computer architecture. They
include accumulators, index registers, stack
pointers, and general-purpose registers plus
any condition-code information.
Process Control Block
▪ CPU-Scheduling Information
– This information includes a process priority,
pointer to scheduling queues, and any other
scheduling parameters.
▪ Memory Management Information
– This information may include such information
as the value of the base and the limit
registers, the page tables, or the segment
tables, depending on the memory system used
by the operating system.
Process Control Block
▪ Accounting Information
– This information includes the amount of CPU and real
time used , time limits, account numbers, job or
process numbers, and so on.
▪ I/O Status Information
– This information includes the list of I/O devices
allocated to the process, a list of open files, and so on.
▪ In brief, the PCB simply serves as the repository
for any information that may vary from process
to process.
Threads
▪ The process model discussed so far has
implied that a process is a program that
performs a single thread of execution.
▪ This single thread of control allows the
process to perform only one task at one time.
▪ Many modern operating systems have
extended the process concept to allow a
process to have multiple threads of execution
and thus to perform more than one task at a
time.
Process Scheduling