Transparent
4.8
NotPlanned
Timers use a lock, and multiple timers can contend with one another for a lock, which can result in excessive CPU usage.
For apps that run under .NET Framework 4.8, an opt-in configuration section may reduce the impact of timers contending for a lock. This change is especially important for high-performance applications.
- Quirked
- Build-time break
Applications running on .NET Framework 4.8 can opt into this change by setting the following AppContext
switch:
Switch.System.Threading.UseNetCoreTimer=true
T:System.Threading.Timer