Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore this chapter's topics with deeper research.
Answer the following questions:
- Which information can you find out about a process?
- How accurate is the
Stopwatch
type? - By convention, what suffix should be applied to a method that returns
Task
orTask<T>
? - To use the
await
keyword inside a method, what keyword must be applied to the method declaration? - How do you create a child task?
- Why should you avoid the
lock
keyword? - When should you use the
Interlocked
class? - When should you use the
Mutex
class instead of theMonitor
class? - Does using
async
andawait
in a web application or web service improve performance? If not, why do it? - Can you cancel a
Task
instance? How?
Use the following links to read more about this chapter's topics:
- Threads and threading: https://docs.microsoft.com/en-us/dotnet/standard/threading...