Mutual exclusion with busy waiting

Lists of Questions Answers and Short Study Notes on Inter Process Communication

  • (1) Define following terms.
  • (2) Explain different mechanisms for achieving mutual exclusion with busy waiting.

 

Question-1 Define following terms.

Race Condition

  • 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).

 

Mutual Exclusion

  • 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.

 

Turnaround Time

  • Time required to complete execution of process is known as turnaround time.
  • Turnaround time = Process finish time – Process arrival time.

 

Throughput

  • Number of processes completed per time unit is called throughput.

 

Critical Section

  • The part of program or code of segment of a process where the shared resource is accessed is called critical section.

 

Waiting time

  • It is total time duration spent by a process waiting in ready queue.
  • Waiting time = Turnaround time – Actual execution time.

 

Response Time

  • It is the time between issuing a command/request and getting output/result.