Threading examples.