Hi, I instrumented your Pipeline program to print when the updates (doSomething) from case 2 of the switch and the printing from case 3 of the switch started and stopped. It looks to me like your synchronization logic is buggy; the updates to the arrays are happening concurrently with the values being printed. The instrumented version is attached. Below is a typical output.(See attached file: Pipeline.x10)
--dave [dgrove@linchen myTests]$ ./a.out Begin PRINTING a3 at stage 3 Begin update of a3 (local(0) = 4) at stage 2 0 0 0 4 4 4 4 4 4 4 End update of a3 (a3()(0) = 4) at stage 2 Done PRINTING a3 at stage 3 Begin update of a4 (local(0) = 9) at stage 3 Begin PRINTING a4 at stage 4 9 9 9 9 9 9 9 9 9 9 Done PRINTING a4 at stage 4 End update of a4 (a4()(0) = 9) at stage 3 Begin PRINTING a3 at stage 5 4 4 Begin update of a3 (local(0) = 16) at stage 4 4 16 16 16 16 End update of a3 (a3()(0) = 16) at stage 4 16 16 16 Done PRINTING a3 at stage 5 Begin PRINTING a4 at stage 6 9 9 9 9 9 9 9 9 9 9 Done PRINTING a4 at stage 6 Begin update of a4 (local(0) = 25) at stage 5 End update of a4 (a4()(0) = 25) at stage 5 Begin PRINTING a3 at stage 7 16 16 16 16 16 16 16 16 16 16 Done PRINTING a3 at stage 7 Begin update of a3 (local(0) = 36) at stage 6 End update of a3 (a3()(0) = 36) at stage 6 Begin PRINTING a4 at stage 8 25 25 25 25 25 25 25 25 25 25 Done PRINTING a4 at stage 8 Begin update of a4 (local(0) = 49) at stage 7 End update of a4 (a4()(0) = 49) at stage 7 Begin PRINTING a3 at stage 9 36 36 36 36 36 36 36 36 36 36 Done PRINTING a3 at stage 9 Begin update of a3 (local(0) = 64) at stage 8 End update of a3 (a3()(0) = 64) at stage 8 Begin PRINTING a4 at stage 10 Begin update of a4 (local(0) = 81) at stage 9 49 End update of a4 (a4()(0) = 81) at stage 9 81 81 81 81 81 81 81 81 81 Done PRINTING a4 at stage 10 Begin PRINTING a3 at stage 11 64 64 64 64 64 64 64 Begin update of a3 (local(0) = 100) at stage 10 64 64 64 Done PRINTING a3 at stage 11 End update of a3 (a3()(0) = 100) at stage 10
Pipeline.x10
Description: Binary data
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users