Chapter 1: Introduction: Silberschatz, Galvin and Gagne ©2013 Operating System Concepts - 9 Edit9on
Chapter 1: Introduction: Silberschatz, Galvin and Gagne ©2013 Operating System Concepts - 9 Edit9on
1.2
OS is a resource allocator
OS is a control program
1.3
mainframes)
Advantages include:
1.
2.
3.
Two types:
resources
1.4
Single user cannot keep CPU and I/O devices busy at all times
Instead, the operating system executes part of one program, then part
of another, and so on.
To the user it appears that all programs are executing at the same time.
Jobs in Memory
1.5
A CPU switches between jobs so frequently that users can interact with each job
while it is running, creating interactive computing
Each user has at least one program executing in memory this executed program
is called process
When several jobs ready to run at the same time, OS has to choose which to run
first this is CPU scheduling
OS moves jobs or processes from memory to disk while waiting for other
processes to execute this is swapping
To ensure reasonable response time , OS use a part of the disk and make it work
as a memory called - Virtual memory- which allows execution of processes not
completely in memory
1.6
Operating-System Operations
The OS must maintain control over the CPU. To accomplish this goal, we can
use a timer- which can be set to interrupt the CPU work after a specific time. It
prevent infinite loop / process hogging resources
The computer system has Dual-mode operation that allows OS to protect itself and
other system components:
Kernel mode: when a user application requests a service from the operating
system, the system must transition from user to kernel mode to fulfill the
request.
1.7
This may include hardware-related services (for example, accessing ahard disk
drive), creation and execution of newprocesses, and communication with
integral kernel services such asprocess scheduling.
System calls provide an essential interface between a process and the operating
system.
1.8
Process Management
A process is a program in execution. It is a unit of work within the system.
instruction to execute
Process executes instructions sequentially, one at a time, until completion
Multi-threaded process has one program counter per thread.
1.9
1.10
Memory Management
Memory management is the process of controlling and coordinating
Deciding which processes (or parts thereof) and data to move into
and out of memory
1.11
Storage Management
Free-space management
Storage allocation
Disk scheduling
File-System management
Files usually organized into directories
Access control on most systems to determine who can access what
OS activities include
Creating and deleting files and directories
Mapping files onto secondary storage
Backup files onto stable (non-volatile) storage media
1.12
implicit
1.13
I/O Subsystem
One purpose of OS is to hide particularities of hardware devices (such
1.14
do what
User identities (user IDs, security IDs) include name and
associated number, one per user
User ID then associated with all files, processes of that user to
determine access control
Group identifier (group ID) allows set of users to be defined and
controls managed, then also associated with each process, file
Privilege escalation allows user to change to effective ID with
more rights
1.15
Doubly linked list : a given item can refer either to its predecessor or to its
successor
Circular linked list : the last element in the list refers to the first element,
rather than to null
1.16
Computing Environments
Computing Environments - Traditional
Stand-alone general purpose machines
Portals provide web access to internal systems
Network computers (thin clients) are like Web terminals
Laptops (mobile computers) interconnect via wireless networks
1.17
Computing Environments
Computing Environments Distributed
Collection of separate, possibly heterogeneous, systems networked together
Illusion of a single system
Network Operating System provides features between systems across
network
clients.
Many systems now servers, responding to requests generated by clients
Compute-server system provides an interface to client to request
services (i.e., database)
File-server system provides interface for clients to store and retrieve
files
1.18
1.19
Emulation used when source CPU type different from target type (i.e.
1.20
Many types
1.21
1.22
Windows CE.
Use expanding
1.23
(DRM) movement
1.24