In: Computer Science
. Explain in detail the two types of processes in an operating system and explain the advantages of them.
The process execution within a computer may not happen if there is no communication among the components.Many components like Central Processing Unit and Input/Output devices help each other to ensure the success of tasks.The OS gets the task and schedules a time for CPU processing. When CPU gets ready , the task gets executed.
There are two types of operating system processes:
Independent Process: These processes do not affect and are not affected by other processes which are executing within the same operating system. They don't have any data to be shared with other processes
Advantages:
Parallel Computing: If two process are not dependent then they can be executed parallely.
Cooperating Processes: These processes affect and being affected by other processes, The processes share data among themselves.
Advantages:
1) Information Sharing :Many processes may need to access to the same file ( e.g. pipelines. ).one process will write to the file, while the other process reads from the file
2) Computation speedup - Breaking down a process into sub processes may lead to concurrent execution when we have multiple processors
3)Convenience - multi-tasking, such as editing, compiling, printing, and running the same code in different tabs.
Based on event-specific categorisation OS processes are of two types
CPU Bound Process: The rate at which process executes is limited by the speed of the CPU.
I/O Bound Process: The rate at which a process executes is limited by the speed of the I/O devices.