Operatingsystem PHP
Operatingsystem PHP
Operatingsystem PHP
Hardware
Operating System
Computer
Hardware
Operating System
• a collection of programs which control the
resources of a computer system
• written in low-level languages (i.e. machine-
dependent)
• an interface between the users and the
hardware
• when the computer is on, OS will first load
into the main memory
Basic functions of the operating
system
Device configuration
Controls peripheral devices connected to the computer
File management
Transfers files between main memory and secondary
storage, manages file folders, allocates the secondary
storage space, and provides file protection and
Operating recovery
System
Memory management
Allocates the use of random access memory (RAM) to
requesting processes
Interface platform
Allows the computer to run other applications
Other function of Operating
System
• best use of the computer resources
• provide a background for user’s programs to
execute
• display and deal with errors when it happens
• control the selection and operation of the
peripherals
• act as a communication link between users
• system protection
Common Operating Systems and
Their Differences
• For example
– anti-missile defense system
– airplane landing control system
– interrupt error in computer system
Time sharing processing
• Each user is given a time slice to interact
with the CPU.
• The size of the time slice will depend on the
system.
• Each user is served in sequence.
Special Features of OS
• multi-tasking
• multi-programming
• parallel processing
• buffering
• spooling
Multi-tasking
• to handle 2 or more programs at the same
time from a single user ‘s perception
– CPU can only perform one task at a time,
however, it runs so fast that 2 or more jobs
seem to execute at the same time
Multi-programming
• 2 or more programs store in the main memo
ry at the same time
• when one job reeds to wait (e.g. I/O operati
on), CPU switch to another job to execute
• when the first job finishes waiting, CPU wil
l get back the first job to execute
Parallel Processing
• use 2 or more CPUs to handle jobs
• computer networking without multiprocessing
Job 3
Job 4
Job 2
time Job 3 time
Job 1
Job 1 Job 2