Time Sharing Operating System
Time Sharing Operating System
OPERATING SYSTEM
A BRIEF DESCRIPTION
TIME SHARING OS (BRIEF)
• The CPU performs many tasks by switches are so frequent that the user can interact with
each program while it is running.
• A time shared operating system allows multiple users to share computers simultaneously.
• Each action or order at a time the shared system becomes smaller, so only a little CPU time
is required for each user.
• As the system rapidly switches from one user to another, each user is given the impression
that the entire computer system is dedicated to its use, although it is being shared among
multiple users.
HOW IT WORKS?
• A time shared operating system uses CPU scheduling and multi-programming to provide each with
a small portion of a shared computer at once.
• This short period of time during which user gets attention of CPU is known as time slice, time slot
or quantum. It is typically of the order of 10 to 100 milliseconds.
• To achieve a good response time, jobs may have to swap in and out of disk from main memory which
now serves as a backing store for main memory. A common method to achieve this goal is virtual
memory, a technique that allows the execution of a job that may not be completely in memory.
REQUIREMENTS OF TIME SHARING OPERATING
SYSTEM
• Time shared operating systems are more complex than multiprogrammed operating
systems. In both, multiple jobs must be kept in memory simultaneously, so the system must
have memory management and security
• An alarm clock mechanism to send an interrupt signal to the CPU after every time slice.
Memory Protection mechanism to prevent one job’s instructions and data from interfering
with other jobs.
ADVANTAGES OF TIME SHARING
OPERATING SYSTEM
• Each task gets an equal opportunity.
• Less chances of duplication of software.
• CPU idle time can be reduced.
DISADVANTAGES OF TIME SHARING
OPERATING SYSTEM
1. Reliability problem.
2. One must have to take of security and integrity of user programs and data.
• Active State – The user’s program is under the control of CPU. Only one program is
available in this state.
• Ready State – The user program is ready to execute but it is waiting for it’s turn to get the
CPU. More than one user can be in ready state at a time.
• Waiting State – The user’s program is waiting for some input/output operation. More than
one user can be in a waiting state at a time.
CONTACT DETAILS
[email protected]