Hello oz users,
the program below runs in mozart 1.2.0, but when it
runs in mozart 1.1.0 the watcher procedure does not
work.
Can anybody tell me about it? What diferents there
exist between 1.2.0 and 1.1.0 versions, in the
distributed programming refers to?
functor
import Fault Browser Remote
define
F=
functor
import Fault Browser Remote Connection Pickle
export pri:Pri entidad:Ent start:Start
define
Pri
S Ent = {NewPort S}
proc{LocalStart P Id}
{Fault.installWatcher P [permFail]
proc{$ _ _}
{Browser.browse rebuild}
end _}
end
Trigger TSync
thread
case Trigger of P#Id then
{LocalStart P Id}
TSync=true
else skip end
end
proc{Start P Id}
Trigger=P#Id
{Wait TSync}
end
end
try
MM1 P1 MM2 P2
in
MM1= {New Remote.manager init(fork:sh
detach:true)}
P1={MM1 apply(F $)}
P1.pri=F
MM2= {New Remote.manager init(fork:sh
detach:true)}
P2={MM2 apply(F $)}
P2.pri=F
{P1.start P2.entidad 1}
{P2.start P1.entidad 2}
catch X then
{Browser.browse manager#X}
end
end
thanks,
Albert Soletsky
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.