Rewrite thread spawner chapter, add example.