Variable goes out of scope in the child thread when parent thread returns

Printable View