thread spawner diagram