The following program demonstrates how to spawn and join a thread.
This zip file contains the complete crate.