Tuesday 12 May 2015

OS Question-3

Q: A problem encountered in multitasking when a process is perpetually denied necessary resources is called

Options:

a) deadlock
b) starvation
c) inversion
d) aging

Answer: B

Deadlock: A deadlock is a situation in which two or more competing actions are each waiting for the other to finish, and thus neither ever does.

Aging: In operating system task scheduling, aging is the process of gradually increasing the priority of a task, based on its waiting time in the ready queue. In priority-based scheduling algorithms, a major problem is indefinite block, or starvation. A process that is ready to run but waiting for the CPU can be considered blocked.

Inversion: In computer science, priority inversion is a problematic scenario in scheduling in which a high priority task is indirectly preempted by a medium priority task effectively "inverting" the relative priorities of the two tasks. This violates the priority model that high priority tasks can only be prevented from running by higher priority tasks and briefly by low priority tasks which will quickly complete their use of a resource shared by the high and low priority tasks.


No comments:

Post a Comment