Question-1 Define following terms.
- Race condition can be defined as situation where two or more processes are reading or writing some shared data and the final result depends on who runs precisely when (their relative execution order).
- It is a way of making sure that if one process is using a shared variable or file; the other process will be excluded (stopped) from doing the same thing.
- Time required to complete execution of process is known as turnaround time.
- Turnaround time = Process finish time – Process arrival time.
- Number of processes completed per time unit is called throughput.
- The part of program or code of segment of a process where the shared resource is accessed is called critical section.
- It is total time duration spent by a process waiting in ready queue.
- Waiting time = Turnaround time – Actual execution time.
- It is the time between issuing a command/request and getting output/result.