Update threading example.