cvhufjbvbcxx9222 cvhufjbvbcxx9222
  • 22-10-2020
  • Computers and Technology
contestada

If we run 5 instances of ThreadA() and 1 instance of ThreadB(), what can be the maximum number of threads active simultaneously in the Critical Section

Respuesta :

sandlee09
sandlee09 sandlee09
  • 25-10-2020

Answer:

Only one

Explanation:

When dealing with a critical section, only one thread may be active in it a single moment. If more than one thread is trying to gain access then only one will be allowed while the other would be placed in a queue to access it next. This is mainly done in order to prevent two threads/processes from accessing/manipulating the same variable or data at the same time which can cause program breaking errors to occur.

Answer Link

Otras preguntas

A _____ contains additional information that helps readers better understand the main story. headline banner sidebar subhead
Which of the following is an example of an ar verb in Spanish
What is mx+2nx=p for x
Which guideline should you follow when selecting the font for a presentation
Write the number that is 1 more than 8,325
Why did settlers pick south carolina as a place to live
Do all squares have four sides
what two decimals are equivalent to 5.300
Ned is training for a biathlon. He will swim every sixth day and bicycle every eighth day. On what days will he both swim and bicycle?? Specified answers please
Daniel is trying to determine if one of Newton’s ideas is a law or a theory. The idea that for every action there is an equal but opposite reaction is a fact, b