Talk:Banker's algorithm: Difference between revisions

Content deleted Content added
Zpon (talk | contribs)
I just realised why the pseudo code looks like it does, I made a mistake. Sorry for any trouple.
No edit summary
Line 39:
hi, since i don't really have a clue where to say this i say it here:
what about hyperlinking math symbols (excuse my ignorance if they're not known by this name) like in "foreach (p ∈ P)", while as a programmer i can guess what it means, i'm rather weak on math (isn't this clear by now) so if "∈" linked to a page explaining what it is i'd (hopefully) understand it. just an idea, bye and thanks to you all. <small>—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.50.67.217|82.50.67.217]] ([[User talk:82.50.67.217|talk]]) 21:01, 28 March 2008 (UTC)</small><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
 
 
== Broken Pseudo-code? ==
I am no expert on the Banking Algorithm(i came here to learn it), but am i correct in assuming if ANY process cannot terminate, then the state is considered unsafe? If so, the Pseudo-code is incorrect. The found variable is set to TRUE whenever a process is checked and can terminate. It is never set to FALSE after being initialized. Thus, the Pseudo-code algorithm only indicates an unsafe state if ALL the processes cannot terminate, not ANY.