Introduction To OS
Introduction To OS
Single User OS
• Further divided into the following
1. Single User, Single Task OS
2. Single User, Multitask OS
Single User, Single Task OSs
• As the name indicates, they enable one user to perform one task at a time.
The example included is MS-DOS
Disadvantages
• A processor remains idle due to
external events
• Throughput decreases
TYPES OF OPERATING SYSTEM
Multiprogramming OS
• In multiprogramming OSs, multiple programs are executed simultaneously.
• In multiprogramming environment, several programs, aka jobs, are active in main
memory i.e. they are ready to run.
Types:
• Pre-emption: a process is forcefully removed from the CPU as in time-sharing or
multitasking.
• Non pre-emption: a process is not removed until its completion.
Advantages
• Efficient use of a processor by interleaving multiple jobs
• Increased CPU utilization (no idleness)
• Better memory utilization
Degree of Multiprogramming
- The number of processes that can reside in the ready state.
TYPES OF OPERATING SYSTEM
Multitasking OS
• It is an extension to multiprogramming
• The only difference is switching of jobs;
• In multitasking OS, OS switches jobs quickly on a single processor.
Examples: Windows 2000, Solaris, Windows XP etc.
Time-Sharing OS
• Basically, time sharing OS is an extension to multitasking OS;
• Time-sharing OS and Multitasking OS are the same except that processes are assigned to
the CPU into fixed small slices / quantum;
• Multiple users access the system simultaneously through their terminals as well;
Disadvantages
- Data Communication problem
- Reliability
- Security
TYPES OF OPERATING SYSTEM
Real-Time OS
• This type of OS provides a required level of service in a bounded-response time.
• It executes jobs/processes within time constraints.
Types:
Hard Real-Time OS
• guarantees that critical tasks complete on time
• secondary storage is limited or missing and the data is stored in ROM
• virtual memory is almost never found
Soft Real-Time OS
• Soft real-time systems are less restrictive.
• a minor delay (in microseconds) is acceptable.
TYPES OF OPERATING SYSTEM
Distributed OS
• This type of OS manages a group of independent computers (networked together)
• It makes them appear to users as a single computer
• They are useful where distributed applications are running on multiple applications.
• Processors of DOS communicate with each other.
• Also referred to as loosely coupled system.
Example: LOCUS
DIFFERENCE BETWEEN
Process Thread
A process requires more time for A thread requires less time for creation.
creation, and the same for termination.
Processes are independent; they don’t Threads may share some memory
share memory. between peer threads.
PROCESS MODEL
Seven states process model has the following states.
Note: A process may request for more than one devices at a time
FUNCTIONS OF OS
Files Management
• Data stored in a computer in files.
• These files are arranged and organized in directories and sub-directories.
• These files are arranged in such manner for efficient/easy navigation and usage.
• File Manager is a tool responsible for managing these files.
• It keeps track where information/data is stored, user access settings, status of every file
etc.
• It is also responsible for manipulation of data in files etc.
• These facilities are collectively known as file system.
FUNCTIONS OF OS
Other functions performed by OS are
– Secondary storage management
– Security
– Network Management etc.