5638684978

5638684978



The Banker Problem

The “Banker’s Problem” was originally given by Dijkstra in 1986 as an example of resource sharing problem:

A banker has n clients, and a fixed Capital g. Each client reąuires a predetermined amount, say f for the ith client, for his project. He does not need all the money at the beginning, but periodically he reąuests a unit of Capital from the bank until his reąuirement id fulfilled. Some time later he returns his fuli loan to the bank.

The banker may satisfy a given request if he has the money available, but he may choose not to do so. In that case the client has to wait until his reąuest is satisfied.

The banker ’s problem is to develop a strategy for distributing the money which will eventually satisfy all the clients ’ reąuirements.

The banker has to avoid situations in which he has insufficient money but there are clientsreąuests still outstanding. These situations are called deadlocks.

An instance i = (n, f, g) of the problem is characterized by a positive integer n, and n-tuple f2, ...,fn) and number g. All amounts are positive integers.

Given a particular problem instance, a State is an n-tuple r=(ri, r2, ...,rn) representing the amount reąuired but not yet received by each client. Initially r = f. A State is safe if it does not necessarily lead to a deadlock.



Wyszukiwarka

Podobne podstrony:
5 EXAMPLES 5.1 STRENGTH ASSESSMENT BASED ON BIENIAWSKPS ROCK MASS RATING SYSTEM RMR„. As an example
4.    Dziawgo D., Credit-rating as an example of risk standardization on the
htdctmw 126 Here’s a well-inked panel, shown the size it was originally worked on, and then reduced
essent?rving?81 FlG 7.2 An example of lute, debased, linenfoldfrom a Welsb church. The colour was us
72 Aleksandra Leśniewska An example of post-interaction notes taken down by the instructor is presen
skanuj0083 (21) 86 JOANNA PRZYBYŚ the urban life, the attractiveness of the country, perceived as an
oak sih7 119 119 The third one (Fig. 101) is in most ways a perfect example of the rype, though it
File0042 4 Study the Look out! box. Find an example of been and gone in the postcard. been and
96 T.Z. Dworak, B. Hejmanowska, K. Pyka Hejmanowska B.: An example of multi/hyperspectral data proce
167 Vol. 36(2), 2001 3) presence of the nephiostome. On the other hand, what allow a ftinction as an
An example of the kind ot PCB components overlay which can be produced using OrCAD/SDT, printed on a
UHAM057 40 * UNDERSTANDING HEADACHES AND M IG RAI N ES being served the wrong dish in a restaurant a
Stahl67 bmp THE BOLE OF MODELS IN THEOKETICAL BIOLGJY 183 Examples of dimensionless numbers approp
50 (142) 50 • THE PATTERN COLLECTIONCrescent Collar This is an example of random or irregular tattin
Copyright MCMLVI, Charlotte Armstrong Lewi A DRAM OF POI SON was originally published by Coward-McCa
-3- Hartmann, Sweden Ł_The Active Labour Market Policy and Economic Planning in Sweden As pointed ou

więcej podobnych podstron