threads example simplified
Merge branch 'master' into 1.0