What Is An Operating System?
What Is An Operating System?
What Is An Operating System?
CREDIT-INTERNET
Let's look at the I/O system and few drivers related to the hardware components
that the OS needs to maintain its task:
I/O System Management - The module that keeps track of the status of devices
is called the I/O traffic controller. Each I/O device has a device handler that
resides in a separate process associated with that device.
The I/O subsystem consists of
Loader - A Loader is a routine that loads an object program and prepares it for
execution. There are various loading schemes: absolute, relocating and direct-
linking. In general, the loader must load, relocate and link the object program.
The loader is a program that places programs into memory and prepares them
for execution. In a simple loading scheme, the assembler outputs the machine
language translation of a program on a secondary device and a loader places it
in the core. The loader places into memory the machine language version of the
user’s program and transfers control to it. Since the loader program is much
smaller than the assembler, those make more core available to the user’s
program.
• It is very difficult to guess or know the time required for any job to
complete. Processors of the batch systems know how long the job would
be when it is in queue.
• Multiple users can share the batch systems
• The idle time for the batch system is very less
• It is easy to manage large work repeatedly in batch systems
• Reliability problem
• One must have to take care of the security and integrity of user programs
and data
• Data communication problem.
These types of OSs serve real-time systems. The time interval required to
process and respond to inputs is very small. This time interval is called response
time.
Real-time systems are used when there are time requirements that are very
strict like missile systems, air traffic control systems, robots, etc.
Disadvantages of RTOS:
• Limited Tasks: Very few tasks run at the same time and their
concentration is very less on few applications to avoid errors.
• Use heavy system resources: Sometimes the system resources are not so
good and they are expensive as well.
• Complex Algorithms: The algorithms are very complex and difficult for
the designer to write on.
• Device driver and interrupt signals: It needs specific device drivers and
interrupts signals to respond earliest to interrupts.
Lets say, for example a program is not capable of reading keystrokes while making
drawings. These tasks cannot be executed by the program at the same time. This
problem can be solved through multitasking so that two or more tasks can be executed
simultaneously.
Thread:
Thread is the segment of a process means a process can have multiple threads
and these multiple threads are contained within a process. A thread has three
states: Running, Ready, and Blocked.
Process vs Thread: -
CREDIT-INTERNET