Chapter 13 – Improving Performance and Scalability Using Multitasking

  1. Which information can you find out about a process?

Answer: The Process class has many properties including: ExitCode, ExitTime, Id, MachineName, PagedMemorySize64, ProcessorAffinity, StandardInput, StandardOutput, StartTime, Threads, and TotalProcessorTime. You can find more information about Process Properties at: https://msdn.microsoft.com/en-us/library/System.Diagnostics.Process_properties(v=vs.110).aspx

  1. How accurate is the Stopwatch class?

Answer: The Stopwatch class can be accurate to within a nanosecond (a billionth of a second), but you shouldn't rely on that. You can improve accuracy by setting processor affinity, as shown in the article at the following link: ...

Get C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.