Cleaned up part two a bit. Added a mutex as a locking mechanism for posting messages during thread execution. This solves an issue where threads can interrupt each posting messages. requires -std=c++0x added to g++ compile command. Execution time still needs to be implemented.