Do this:
Whether you are looking to join a helpful community or learn how to code a smoother application, this guide explores both sides of the friendly Windows thread. 1. The Community "Friendly Windows Thread" friendly windows thread
Your CPU, your battery, and your sanity will thank you. Do this: Whether you are looking to join
Unless you are processing a user-initiated foreground task (like applying a Photoshop filter), drop your priority to THREAD_PRIORITY_BELOW_NORMAL or THREAD_PRIORITY_LOWEST . Windows will still give you CPU time, but only when nothing else needs it. Unless you are processing a user-initiated foreground task
: Allows you to see individual threads within a process, their CPU usage, and their call stacks.
Here is where the "friendly" aspect becomes critical: A thread can be temporarily if it is I/O-bound (waiting for a hard drive or network). Why? Because it is being friendly—it is yielding while waiting for data. Conversely, a compute-bound thread that never yields gets no boost. It just burns CPU time.