IT Questions and Answers :)

Friday, May 17, 2019

To avoid a race condition, the number of processes that may be simultaneously executing inside a shared critical section is:

To avoid a race condition, the number of processes that may be simultaneously executing inside a shared critical section is:

  • 4
  • 8
  • 1
  • 2

 To avoid a race condition, the number of processes that may be simultaneously executing inside a shared critical section is:

 EXPLANATION

 Race condition bring in the idea of critical section. Critical section is a mutually exclusive section whereby more than 1 process reading or writing the shared data is prohibited. So to avoid Race Condition, the following 4 conditions are needed

Critical section is the part of program code where the program changes global variables, writing files etc. So entering more than one process in their critical section may cause race condition.

 

SOURCE

https://specialties.bayt.com/en/specialties/q/139982/to-avoid-the-race-condition-the-number-of-processes-that-may-be-simultaneously-inside-their-critical-section-is-a-8-b-1-c-16-d-0/

 

Share:

0 comments:

Post a Comment

Popular Posts