multithreading samples part-1