learning cpp native threads