Phase-State Programming
This project demonstrates a good method for
programming in the parallel world. The code uses a pseudo engine for simplicity.
For more information see this article:
.
The application produces the following output:
Num
MM:SS.millisec Application Log
000 00:00.406
[ Main ] : "Creating Object"
001 00:00.406
[ Communication Buffer ] : "Creating"
002 00:00.406
[ Communication Buffer ] : "Initialized"
003 00:00.406
[ Communication Buffer ] : "State" - 1
004 00:00.406
[ Main ] : "Creating Threads"
005 00:00.406
[ Main ] : "Waiting for communication to complete"
006 00:01.906
[ Communication Buffer ] : "State" - 2
007 00:01.906
[ Communication Buffer ] : "State" - 3
008 00:01.906
[ Main ] : "Back to work"
009 00:04.359
[ Communication Buffer ] : "State" - 65535
010 00:04.375
[ Communication Buffer ] : "Uninitializing"
011 00:04.375
[ Communication Buffer ] : "Destroying"
012 00:04.375
[ Communication Buffer ] : "Destroyed"
Version Date: August 23, 2009