IT Questions and Answers :)

animated-update-image-0026

COVID-19 India HEAT MAP

A message to our readers about COVID-19

With the uncertainty surrounding the outbreak of the corona virus. We want to reassure our reader stay safe and Healthy.Be aware and alert. Work as one nation. Sanitize and disinfect all equipment before entering your home, work and anywhere.

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