Professional Documents
Culture Documents
OP Parke Evans
OP Parke Evans
Process
This is defined as the Instance of a computer program that is being executed or we can say that a
process is a program in execution. For example writing a java code we will save the file as a “.CS “ file
then we provide it to the compiler and compiler will compile the “. CS” file and generate the “.class”
.Both files are called program and they are stored in secondary memory or we can say hard disk so then
we need to execute the file to get output so the operating system will take the dot class file and bring it
in the main memory or ram for execution when the CPU starts the execution the program becomes a
process which is executed by the CPU. The process performs all tasks present in the program so we say a
process is basically a program execution so when a program is running it is called this process. When the
program becomes process, it is structure the structure can be divided in four parts first is code second
one is data third is heap and fourth is stuck.
Modularity
Modularity deals with dividing complex tasks into smaller subtasks. These subtasks can be
completed by different cooperating processes when this happens it leads to faster and more
efficient completion of the required tasks.
Information Sharing
Information sharing between multiple processes can be done using cooperating processes. This
may include access to the same files. A device is required so that the processes can access the
files in parallel to each other.
Convenience
There are many tasks that a user needs to do such as compiling, printing, editing etc. It is
convenient if these tasks can be managed by cooperating processes.
Computation Speedup
Sub tasks of a single task can be performed parallel using cooperating processes. This increases
the computation speedup as the task can be performed faster. However, this is only possible if
the system has multiple processing elements.
3.
PROCESS ID BURST TIME
P1 21
P2 3
P3 3
REGENT UNIVERSITY COLLEGE OF SCIENCE AND TECHNOLOGY
Gantt chart
P1 P2 P3
0 21
24 27
User interface
System calls
error protection
detection and security
services
5.
REGENT UNIVERSITY COLLEGE OF SCIENCE AND TECHNOLOGY
6.
Operating system