Practicing and exploring
Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring this chapter’s topics with deeper research.
Exercise 5.1 – Test your knowledge
Answer the following questions:
- What information can you find out about a process?
- How accurate is the
Stopwatchclass? - By convention, what suffix should be applied to a method that returns
TaskorTask<T>? - To use the
awaitkeyword inside a method, what keyword must be applied to the method declaration? - How do you create a child task?
- Why should you avoid the
lockkeyword? - When should you use the
Interlockedclass? - When should you use the
Mutexclass instead of theMonitorclass? - What is the benefit of using
asyncandawaitin a website or web service? - Can you cancel a task? If so, how?
Exercise 5.2 – Explore topics
Use the links on the following web page to...