thread_demo c++ 11 demo to show how to use thread also used for showing how to use serialport read and write