GoConqr has a new look! Let us know what you think.

Quiz

Quiz 2

Myles Allbee 200 questions

Take the quiz

Questions in this quiz (200)

  1. 1In some systems with priority-based processes, a problem can occur that results in the highest priority ready process being prevented from running by a lower priority process. This problem is called
    1. Athe priority inversion problem
    2. Bthe priority reversal problem
  2. 2Suppose a low-priority process L holds a resource needed for the execution of a high-priority process H, but that L is prevented from running because a medium-priority process M is continually ready to run, and only a single processor is available. What is the name of an algorithm that could be used to deal with this problem?
    1. Aaging
    2. Breverse sorting
  3. 3One technique that can be used to eliminating the busy waiting used with some solutions to the mutual exclusion problem is
    1. Ato have a process relinquish the processor and block until another process, leaving its critical section, awakens it so it can repeat the test
    2. Bto disable interrupts during the wait loop
  4. 4The processes involved in the producer-consumer problem are those that
    1. Aoccasionally generate objects and those that then use those objects
    2. Bare compute-bound and I/O-bound
  5. 5The objects that are being produced in the producer-consumer problem are generally characterized as
    1. Adata objects, like indications of keys pressed or released on a keyboard.
    2. Bblocks of memory, independent of their content
  6. 6The processes in the producer-consumer problem are assumed to run
    1. Aat different and arbitrary rates, as is required by good solutions to race condition problems
    2. Bat about the same rate
  7. 7A buffer, or storage area, is required in the producer-consumer problem. This buffer holds
    1. Aobjects produced before a consumer process is ready to use them
    2. Bobjects that a consumer process considered, but then rejected as unsuitable
  8. 8Access to the buffer in the producer-consumer problem
    1. Ais shared by producers and consumers, and so must occur only inside a critical section
    2. Bis controlled by the last object removed from the buffer
  9. 9When the buffer in the producer-consumer problem is completely full
    1. Aa producer that has created an object must block until an empty space becomes available in the buffer.
    2. Bthe number of producer processes is reduced by half.
  10. 10Assume a producer process is blocked while waiting on empty space in the buffer. In this case, a consumer process
    1. Awill awaken a producer when it removes an object from the buffer, allowing space for the producer to place another object
    2. Bwill remove and discard sufficient data objects (from the buffer) to make space available for the blocked producer to place additional objects in the buffer.

Information

Description
Quiz on Quiz 2, created by Myles Allbee on 04/05/2016.
Language
English
Views
2
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?