From: "Klaas-Jan Stol" <[EMAIL PROTECTED]> Date: Wed, 2 Jan 2008 16:16:26 +0100
what about "joining" threads, and comparing the output at those points? For async IO, a join is more or less implemented by a "wait" operation, no? (or the parrot equivalent for that). just a thought. kjs Is it acceptable for each line to be a unit? If so, then each thread could be written to use a distinct tag, and the output comparator can insist on the order only within lines with the same tag. For example: T1:1 T2:alarm1 T1:2 T2:alarm2 T1:3 T3:alarm3 T2:alarm1 T4:alarm3 . . . Of course, each line would need to be printed atomically, e.g. by constructing it as a string first. -- Bob