[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlaplus] Confirmation of sequence of execution in model

Consider this fragment,

process Worker \in 1..MaxProcesses
    i1: call enq(self);
    i2: call deq();
    i3: call enq(self);
    i4: call deq();  
    i5: print << MessageLog >>;
end process;

Am I correct in intepreting this code to mean that the process runs the statement
i1, then i2, … then i5? MaxProcesses = 2, a global.

I ask because there are 10s and 10s of prints of MessageLog when run when I 
would naively expect 2 only i.e. 2 processes * 1 print/process = 2 prints. 

You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/tlaplus.
For more options, visit https://groups.google.com/d/optout.