Two threads application.