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

rotating column of air
why did ancient civilizations develop​
what is shrek y fiona/ censor in present progressive
The mouse must gothrough the maze to reach the special prize. Which of the following words from the sentence is a preposition? prize. a. must b.go c. through
Which object has a capacity that is best measured in pints1.swimming pool2. Water Bottle3. Soup Spoon4.Trash BarrelHURRY PLZ I WILL GIVE U BRAINLEST​
What is the slope of the line parallel to the line y=-1/2x+3
Can someone tell me how sedimentary rocks usually form ? ( please one simple sentence)
What is 16x + 4y = 12 in slope intercept form
What became of the eastern empire after 476 C.E.?
These are 3 elements of Art that are being used in Sandy Skogland’s “The Green House:Texture,Color and Space.”In one sentence for each element,describe How they