Thread join usage

Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>