From 0e8e29487850f177c24117f8bc6cfb74edab92b9 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Mon, 17 Feb 2014 19:04:18 +0100 Subject: [PATCH] stablo procesa - doterana imena promenljivih na asocijativna --- skripta-os2.tex | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/skripta-os2.tex b/skripta-os2.tex index 4298297..48ce00b 100644 --- a/skripta-os2.tex +++ b/skripta-os2.tex @@ -650,15 +650,16 @@ END; \begin{minipage}{0.6\textwidth} \begin{codeblock} -i := 1; -j := 0; -WHILE (i < n) AND (j < m) DO +dubina := 1; +brdece := 0; +WHILE (dubina < maxdubina) AND + (brdece < potrebnodece) DO pid := fork(); IF pid # 0 THEN - INC(j); + INC(brdece); ELSE - INC(i); - j:=0; + INC(dubina); + brdece := 0; END; END; \end{codeblock} -- 2.25.1