From: Doni Pracner Date: Mon, 17 Feb 2014 18:04:18 +0000 (+0100) Subject: stablo procesa - doterana imena promenljivih na asocijativna X-Git-Tag: v14a~10 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=0e8e29487850f177c24117f8bc6cfb74edab92b9;p=os2skripta.git stablo procesa - doterana imena promenljivih na asocijativna --- 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}