Understanding Tasks
摘要
Modern-day life is full of work. Consider those working mothers who need to complete a lot of housework before they go to the office. You may see them performing all these activities asynchronously. For example, they start preparing breakfast, and they come back from the kitchen to prepare the kids for school. Then they go back to the kitchen to check the status of the food only to leave the kitchen to start preparing themselves for the office. You can see that with this approach, when they start a task, they do not wait for that task to complete; instead, they start the next task and then go back to check the status of the previous task. This process continues until all these tasks are finished. Psychologists who vote for doing one task at a time may not like this approach, but at the same time, we cannot ignore that this is how people do things. The programming world tries to mimic real-world scenarios. Throughout this book, we will explore those possibilities using C# and .NET.