Beruflich Dokumente
Kultur Dokumente
Operating System: -
Software
System Application
(Dependency) (Little bid of Dependency)
Usage Functions
1) Single user – 1) Processor or Process
Windows XP Management
2) Multi user – Linux, 2) Memory Management
Windows 2000 3) File Management
Server. 4) I/O Management
3) Multitasking 5) User Management.
4) Batch Processing
5) Real Time.
1
Computer Science ICS-I Notes Chapter: 7
User
O.S Government.
2
Computer Science ICS-I Notes Chapter: 7
1) Process Management: -
A program does nothing unless its
instructions are executed by a CPU. A process can be
thought of as a program in execution. Typically, a batch job is
a process, a time-shared user program is a process. A
system task such as schooling output to a printer is a
process.
A process needs sudden resources, including CPU time,
memory, files, I/O devices accomplish its task. These
resources are either given to this process when it is created
or allocated to it why it is running. In addition to the various
physical and logical resources that a process obtains when it
is created some initializing data may be passed along. The
process will be given as an improved the name of the file
and will execute the appropriate instruction and the system
to obtain the desired information and display it on the
terminal. A program is a passive entity search as the
contents of the file stored on the disc whereas process is an
active entity with a pointer called program counter that
indicates next instructions to execute. The CPU executes
one instruction of the process after another until the process
completes it is in a sequential fashion. The O.S is
responsible for the following activities in connection the
management of the process.
4
Computer Science ICS-I Notes Chapter: 7
2) Memory Management: -
Main memory is the central to the
operation of a modern Computer system. Main memory is a
large array of words of bytes. Each word of bytes has its own
address. Memory is a repository of quickly accessible data
share by the CPU and I/O devices. There are two kinds of
memory management performed by the O.S.
5
Computer Science ICS-I Notes Chapter: 7
6
Computer Science ICS-I Notes Chapter: 7
1) Multiprogramming O.S: -
A single user can not in
general keep either CPU or the I/O devices busy at all time.
It increases CPU utilizing by organizing jobs. So that CPU
has always one job to execute. The idea is as follows.
The O.S keeps several jobs in memory
simultaneously there. These set of jobs is a subset of the job
kept in the job pool (Queue). Since the number of jobs that
can be kept in the job pool. The O.S keeps up a job and
execute the job may have to wait for tasks, such as I/O
operation etc. In a non-multiprogramming environment CPU
seats idle. In a multiprogramming environment it is always
busy with jobs.
2) Multiprocessor O.S: -
The multiprocessor O.S supports
more than one processor communication sharing the same
computer Bus, the Clock, Memory, I/O devices and in same
time. Multiprocessor system has three outputs -
a) Increase through book
b) Economy of scale
c) Increase reliability
b) Economy of scale: -
Multiple processor system can save more money
than multiple single processor system. Because they share
save same peripherals, power supply and memory also.
c) Increase reliability: -
If certain function can be distributed properly among
several processors then failing of one processor will not held
the system, only show it down which increased tremendous
work flow and reliability among the system.
3) Time sharing O.S: -
It is a logical extension of multiprogramming operating
system. The CPU executes multiple jobs by switching among
them but the switching so frequently that the user can
interact with each program while it is running.
It allows many users to share the computers each action or
command in a time-sharing O.S to be short because only a
little CPU time is given to a user. It uses CPU scheduling
and multiprogramming to provide each user with a small
portion of computer.
4) Real time O.S: -
It is used when the time constrains have been
placed on the operation of the processor of flow of data.
Thus, it is often used as a control device in a dedicated
application. It can be of two types-
Hard Real Time O.S - Which guarantees the critical task, be
completed on time.
Soft Real Time O.S – Where a critical real-time task gets
priority over other task and retains that priority until it
completes.
What Is Process?
8
Computer Science ICS-I Notes Chapter: 7
Waiting
9
Computer Science ICS-I Notes Chapter: 7
Process
Pointer States
Process
Number
Program
Counter
Register
Memory
Limits
List Of Open
Files 10
Computer Science ICS-I Notes Chapter: 7
Diagram of PCB
Process Scheduling:
Step 1 – As process enter the system they are put into a job
Que. This que consists of all processes in the system.
Step 2 – The process that are residing in main memory and
a ready waiting to execute are kept on a list are called
Ready Que. This que is generally store as Link List because
the header of the ready que will contain pointers to the first
and the last PCB in the list. Each PCB has a pointer field
that points to the next process in the ready Que.
A new process is initially put into the job Que from where it is
shifted to ready Que when the process is ready. It waits in
the ready Que until it is selected or the execution and is
given the CPU. Once the process is allocated CPU it
executes and produces results.
Scheduler:-
11
Computer Science ICS-I Notes Chapter: 7
Classification of schedulers:
Operations of processes:-
Co-operating process: -
1) Information sharing
2) Computation speed-up
3) Modularity
4) Convenience.
13