message queue not tested.
worked out the message queue system.
added windows
fixed a redundant reprinting of the static ui.
got the mutex working again.
optimized for three cores.
Merge pull request #1 from llllllllll/msg_log

multi-threaded and multi-core optimized.