How do I program using threads?

Be sure to us