1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Len [333]
4 years ago
9

Considering the following algorithm, which of the following requirements are satisfied?

Computers and Technology
1 answer:
Alisiya [41]4 years ago
4 0

Answer:

b) Bounded Waiting

Explanation:

int currentThread = 1;

bool thread1Access = true;

bool thread2Access = true;

thread1 { thread2 {

While (true) {

                   While (true)

                                   {

                     while(thread2Access == true)

                                       {

                                      while(thread1Access == true)

                                       {

                                            If (currentThread == 2) {

                                              If (currentThread == 1)

                                                {        

                                                  thread1Access = false; thread2Access = false;

                                                  While (currentThread == 2);

                                                 While (currentThread == 1);

                                                  thread1Access = true; thread2Access = true;

} }

/* start of critical section */ /* start of critical section */

currentThread = 2 currentThread = 1

… ...

/* end of critical section */ /* end of critical section */

thread1Access = false; thread2Access = false;

… ...

} }

} }

} }

It can be seen that in all the instances, both threads are programmed to share same resource at the same time, and hence this is the bounded waiting. For Mutual exclusion, two threads cannot share one resource at one time. They must share simultaneously. Also there should be no deadlock. For Progress each thread should have exclusive access to all the resources. Thus its definitely the not the Progress. And hence its Bounded waiting.

You might be interested in
Order the steps to use a logical argument as a rule type.
muminat

Answer:

Click home tab, click conditional formatting, click new rule, use formula to determine

6 0
3 years ago
Read 2 more answers
A 9-year old male castrated Westie presents on emergency after being rescued from a house fire. On presentation, the dog has a r
satela [25.4K]

Answer:

Carbon Monoxide poisoning

Explanation:

According to my research on studies conducted by various medical professionals, I can say that based on the information provided within the question the most likely cause for this is Carbon Monoxide poisoning. This is a gas very similar to oxygen although it is poisonous to living organisms and very flammable. When inhales displaces oxygen on hemoglobin molecules which then formes carboxyhemoglobin complexes, which causes the mucous membrane to become bright red.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

8 0
3 years ago
How can you identify the active cell in excel
dybincka [34]

Answer:

An active cell refers to the currently selected cell in a spreadsheet. It can be identified by a bold (typically blue) outline that surrounds the cell.

Explanation:

he standard way to reference the location of an active cell is with a column/row combination, such as A2 (first column, second row) or B5 (second column, fifth row). hope this helps you :)

6 0
3 years ago
What purpose does the underlined portion of this excerpt
Rudiy27

Answer:

The below mentioned portion is missing from the question

<em>A part of the sacrifice means the payment of more money in taxes. In my Budget Message I shall recommend that a greater portion of this great defense program be paid for from taxation than we are paying today. No person should try, or be allowed, to get rich out of this program; and the principle of tax payments in accordance with ability to pay should be constantly before our eyes to guide our legislation. </em>

<em />

The passage provides the reason why extra taxes must be collected should America decide to join the war  or it introduces the claim that patriotic Americans should be willing to sacrifice and pay extra taxes.

3 0
4 years ago
You have decided to use relative links for your Website's local pages instead of specifying absolute URLs. Your supervisor has a
marin [14]

Answer:

C. The site can be moved from one server to another with minimal disruption.

Explanation:

The perfect reason is the option C.The site can be moved from one server to another with minimal disruption. with relative links you don't need to change the host name for the local page because the browser assumes the address that is in the browser and creates a path relative to it as specified by the file.

4 0
3 years ago
Other questions:
  • Which of the following has likely attended vocational school?
    10·1 answer
  • 5. If you are 16 to 20 years old, you are __________.
    14·1 answer
  • Public static void prefixmerge(customer[] list1, customer[] list2, customer[] result {
    6·1 answer
  • Rich Text Format (RTF) is a universal file format that can include information such as text style, size, and color and can be re
    12·2 answers
  • What limited the possibilities of game development from a technical viewpoint?
    7·1 answer
  • As a prospective student, what is the best reason to request an interview with your college application?
    6·1 answer
  • What is data that originated in another program or format?
    7·1 answer
  • Which of the following are the functions of an os?
    8·1 answer
  • What is it called when u want 2 or more cells into 1
    14·2 answers
  • You cannot then move and resize the control on the form as desired with your mouse TRUE OR FALSE​
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!