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 clients ’ reą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 example4. Dziawgo D., Credit-rating as an example of risk standardization on thehtdctmw 126 Here’s a well-inked panel, shown the size it was originally worked on, and then reducedessent?rving?81 FlG 7.2 An example of lute, debased, linenfoldfrom a Welsb church. The colour was us72 Aleksandra Leśniewska An example of post-interaction notes taken down by the instructor is presenskanuj0083 (21) 86 JOANNA PRZYBYŚ the urban life, the attractiveness of the country, perceived as anoak sih7 119 119 The third one (Fig. 101) is in most ways a perfect example of the rype, though itFile0042 4 Study the Look out! box. Find an example of been and gone in the postcard. been and96 T.Z. Dworak, B. Hejmanowska, K. Pyka Hejmanowska B.: An example of multi/hyperspectral data proce167 Vol. 36(2), 2001 3) presence of the nephiostome. On the other hand, what allow a ftinction as anAn example of the kind ot PCB components overlay which can be produced using OrCAD/SDT, printed on aUHAM057 40 * UNDERSTANDING HEADACHES AND M IG RAI N ES being served the wrong dish in a restaurant aStahl67 bmp THE BOLE OF MODELS IN THEOKETICAL BIOLGJY 183 Examples of dimensionless numbers approp50 (142) 50 • THE PATTERN COLLECTIONCrescent Collar This is an example of random or irregular tattinCopyright 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 ouwięcej podobnych podstron