Adding sample for threads/pipes