Basic threads samples for reference and learning