Comments
Loading Dream Comments...
You must be logged in to write a comment - Log In
{! {AlgorithmOne; 1::> EventFlag1}; {AlgorithmTwo; 1::> EventFlag2} !}
// Start AlgorithmOne in parallel with Algorithm 2, setting one of the event flags for each algorithm when it completes;
{? ?EventFlag1; ?EventFlag2 ?}
// Wait until one of the event flags is set;
// Obviously this is not the only way to solve this, it is merely an example of {!...!} and {?...?}