正在加载图片...
Fischer's protocol id- shared variable each process has it's own timer(for delaying) for correctness it is necessary that K2> Kl Pr rocess 1 while(true) <noncritical section> while id!=0 do i delay kl id delay k2 if (id=i <critical section> d:=0Fischer's Protocol ◼ id — shared variable ◼ each process has it's own timer (for delaying) ◼ for correctness it is necessary that K2 > K1 Process i: while (true) { <noncritical section>; while id != 0 do {} delay K1; id := i; delay K2; if (id = i) { <critical section>; id := 0; } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有