Complete a multithread example.