Question

      1. Which of the following is true ? A)        semaphores are usually implemented using locks...

      1. Which of the following is true ?

A)        semaphores are usually implemented using locks

B)        condition variables are associated with monitors

C)        both of the above

D)        neither of the above

       2. The problem with locks is that

A)        all processes need to know the key

B)        they’re not applicable to more than two processes

C)        they use busy-waiting

D)        all of the above

        3. We can prevent deadlock from occurring by ensuring that the __________ condition
             cannot hold.

A)        mutual exclusion

B)        no preemption

C)        circular wait

D)        any of the above

       4. A race condition ____.

A) results when several threads try to access the same data concurrently

B) will result only if the outcome of execution does not depend on the order in which
       instructions are executed

C) results when several threads try to access and modify the same data concurrently

D) None of the above

          5. An instruction that executes atomically ____.

A) must consist of only one machine instruction

B) cannot be used to solve the critical section problem

C) executes as a single, uninterruptible unit

D) All of the above

Homework Answers

Answer #1

SOLUTION-(1):- (C)  both of the above

EXPLANATION:- semaphores which are restricted to the values 0 and 1 are designated as binary semaphores and are utilized to implement locks. condition variable represents the queue of threads, associated with a monitor, on which a thread may wait for some condition to becomes true.

SOLUTION-(3):- (D) any of the above

SOLUTION-(4):- (C) results when several threads try to access and modify the same data concurrently.

SOLUTION-(5):- (C) executes as a single, uninterruptible unit.

===========================================================================

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. A mechanism by which other modules, such as I/O and memory, may interrupt the normal...
1. A mechanism by which other modules, such as I/O and memory, may interrupt the normal sequencing of the processor is called (A) Communication (B) Trap (C) Interrupt (D) I/O (E) None of the above 2. A mode of operation that provides for the interleaved execution of two or more computer programs by a single processor is called (A) Interrupt (B) Multi-programming (C) Multi-tasking (D) Multi-threading (E) None of the above 3. Which of the following is a memory location...
Question 4 (1 point) Which of the following statements is true? a Entrepreneurs are the driving...
Question 4 (1 point) Which of the following statements is true? a Entrepreneurs are the driving force behind production. b Entrepreneurs risk their time, effort, ability and money because not all ideas or new products will be profitable. c Examples of entrepreneurs are innovators and risk-taking investors. d All of the above. e Only a) and b) Question 5 (1 point) Which of the following statements is true? a Society faces the problem of scarcity of resources. b Resources are...
Question 4 (1 point) Which of the following statements is true? a Excludability occurs when one’s...
Question 4 (1 point) Which of the following statements is true? a Excludability occurs when one’s consumption of a good makes it unavailable for others, and it comes in units that are small enough to be afforded by individual buyers. b Rivalry occurs when those who are unable and unwilling to pay for the good do not have access to the benefits of the good. c Since private goods have rivalry and excludability, private, firms can produce and sell them...
QUESTION 7 Which of the following is NOT an assumption of perfect competition:     a.   There...
QUESTION 7 Which of the following is NOT an assumption of perfect competition:     a.   There are no barriers to entry.     b.   All firms have access to the same technology and input factors.     c.   All firms pay the same price for input factors (and if quantity discounts apply, all firms buying the same input quantity face the same price).     d.   Firms try to push competitors out of the market by setting the price of the product they...
Question 10 (1 point) Which of the following statements is true? a Purchasing power is the...
Question 10 (1 point) Which of the following statements is true? a Purchasing power is the ability to buy goods and services. b While goods are tangible (say, apples and laptops), services are intangible (say, haircuts and lawn mowing). c Income is the amount of money one makes a year. d All of the above. e Only a) and b) Question 11 (1 point) Which of the following statements is true? a Price is the amount of money that must...
QUESTION 8 1. Which of the following is used as a defense in response to the...
QUESTION 8 1. Which of the following is used as a defense in response to the problem of evil? a. Evil is only the absence of good. b. Evil is caused by humans through their free choice. c. A world without evil would be ill-suited to the purpose of moral and spiritual development. d. The existence of evil is necessary for the existence of good; one cannot exist without the other. e. All of the above.
1. Which of the following are ways that the government subsidizes higher education a. Pell grants...
1. Which of the following are ways that the government subsidizes higher education a. Pell grants b. Regulating access c. Title IX provisions d. Providing information on the costs and benefits of a degree e. All of the above f. None of the above 2. Which of the following is an example of a potential market failure in higher education a. College is expensive b. Housing is expensive c. Students cannot borrow enough to make it through school d. Religious...
q-1 Which of the following statements is true? a Trade barriers in the 1930s contributed to...
q-1 Which of the following statements is true? a Trade barriers in the 1930s contributed to the Great Depression. b With the addition of government and net exports to aggregate expenditure (AE), the economy becomes a mixed, closed economy. c An increase in Net Taxes (T) has an indirect negative effect on aggregate expenditure (AE) because the increase in T reduces disposable income first, and then consumption falls by an amount equal to the increase in T times the MPC,...
Question 25 (1 point) Which of the following statements is true? a Cyclical unemployment is caused...
Question 25 (1 point) Which of the following statements is true? a Cyclical unemployment is caused by changes in weather conditions, tourist patterns, and other seasonal factors. b Seasonal unemployment is caused by a recession. As firms respond to low demand for their goods and services, output and employment fall. c Very high unemployment during the Great Depression (25% in 1933) is significantly explained by cyclical unemployment. d All of the above. e Only a) and b) Question 26 (1...
1 - Which of the following statements is true regarding a 95% confidence interval? Assume numerous...
1 - Which of the following statements is true regarding a 95% confidence interval? Assume numerous large samples are taken from the population. a. In 95% of all samples, the sample proportion will fall within 2 standard deviations of the mean, which is the true proportion for the population. b. In 95% of all samples, the true proportion will fall within 2 standard deviations of the sample proportion. c. If we add and subtract 2 standard deviations to/from the sample...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT