Advantages of Concurrency
- Running of multiple applications: It enable to run multiple applications at the same time.
- Better resource utilization: It enables that the resources that are unused by one application can be used for other applications.
- Better average response time: Without concurrency, each application has to be run to completion before the next one can be run.
- Better performance: It enables the better performance by the operating system. When one application uses only the processor and another application uses only the disk drive then the time to run both applications concurrently to completion will be shorter than the time to run each application consecutively.
Concurrency in Operating System
Concurrency is the execution of multiple instruction sequences at the same time. It happens in the operating system when there are several process threads running in parallel. The running process threads always communicate with each other through shared memory or message passing. Concurrency results in the sharing of resources resulting in problems like deadlocks and resource starvation.
It helps in techniques like coordinating the execution of processes, memory allocation, and execution scheduling for maximizing throughput.
There are several motivations for allowing concurrent execution
- Physical resource Sharing: Multiuser environment since hardware resources are limited
- Logical resource Sharing: Shared file (same piece of information)
- Computation Speedup: Parallel execution
- Modularity: Divide system functions into separation processes
Contact Us