首页 > 试题广场 >

Under what circumstances does

[问答题]

Under what circumstances does the wait-die scheme perform better than the wound-wait scheme for granting resources to concurrently executing transactions?

推荐

In the wround(-)wait scheme an older process never waits for a younger process; it instead rolls back the younger process and preempts its resources.When a younger process requests a resource held by an older process,it simply waits and there are no rollbacks.

In the wait(-)die scheme,older processes wait for younger processes without any rollbacks but a younger process gets rolled back if it requests a resource held by an older process.This rollback might occur multiple times if the resource is being held by the older process for a long period of time.Repeated rollbacks do not occur in the wound(-)wait scheme.Therefore,the two schemes perform better under different circumstances depending upon when older processes are more likely to wait for resources held by younger processes or not.

发表于 2018-03-25 10:14:37 回复(0)