basic thread creation and communication implemented.