How does concurrency work?