1. When the scheduler overlooks a process that is runnable, this
situation is called (A) Deadlock (B) Livelock (C)
Race (D) Starvation (E) This situation cannot happen.
2. Which of the following condition will cause the final result
depending on the order of execution of instructions?
(A) Deadlock (B) Livelock (C) Mutual Exclusion (D) Race (E)
Starvation
3. Which of the following is not a hardware approach to mutual
exclusion? (A) Interrupt disabling (B) Compare
and Swap instruction (C) Spin waiting (D) Exchange instruction (E)
Semaphores
4. Which of the following statement regarding semaphore is untrue?
(A) A binary semaphore may be initialized
to any nonnegative integer value. (B) Mutex must be unlocked by the
same process that locks it. (C) Both
semWait and semSignal are atomic. (D) A semaphore that does not
specify the order in which processes are
removed from the waiting queue is a weak semaphore. (E) None of the
above.
5. A programming-language construct that provides equivalent
functionality to that of semaphores is called (A)
Monitor (B) Broadcast (C) Message (D) Addressing (E) None of the
above
1. When the scheduler overlooks a process that is runnable, this situation is called (A) Deadlock...
1. True-false or multiple choice. Provide a one-sentence explanation you will get no credit for a correct answer without a proper explanation. Suggested time to spend on these questions: 10 minutes. [4x5-20ptsl (a) True or false: Peterson's algorithm for mutual exclusion offers bounded wait. b) Thue or falher Cumsider a concumcent program comitingof several 1oad indctioms e instructions (or instructions with similar effects as store). Such a program can never have any race conditions (c) True or false: Solutions based...
JAVA 3 PLEASE ANSWER AS MANY QUESTIONS AS POSSIBLE! ONLY 2 QUESTIONS LEFT THIS MONTH!!! Question 12 pts Which is a valid constructor for Thread? Thread ( Runnable r, int priority ); Thread ( Runnable r, String name ); Thread ( int priority ); Thread ( Runnable r, ThreadGroup g ); Flag this Question Question 22 pts What method in the Thread class is responsible for pausing a thread for a specific amount of milliseconds? pause(). sleep(). hang(). kill(). Flag...
1. When it comes to financial matters, the views of Aristotle can be stated as: a. usury is nature’s way of helping each other. b. the fact that money is barren makes it the ideal medium of exchange. c. charging interest is immoral because money is not productive. d. when you lend money, it grows more money. e. interest is too high if it can’t be paid back. 2. Since 2008, when the monetary base was about $800 billion,...
Please help to answer these questions HIPAA Assessment 1. When you comply with HIPAA standards, what are you ensuring? a. Patients have unlimited access and control over their health information. b. Patients have legal rights regarding who can access and use their PHI. c. Our organization has implemented the proper security controls required by law. d. Our organization has the final say on who can access our patients and/or customers’ PHI. 2. You attempt to log in to an unattended...