Using CloseHandle() with a KThread handle will terminate the specified thread, only if the reference count reaches 0.
Using CloseHandle() with a KThread handle will terminate the specified thread, only if the reference count reaches 0.
+
+
Lower priority values give the thread higher priority. For userland apps, priorities between 0x18 and 0x3F are allowed. The priority of the app's main thread seems to be 0x30.
+
+
The thread scheduler is cooperative, therefore if a thread takes up all the CPU time (for example if it enters an endless loop), all the other threads that run on the same CPU core won't get a chance to run.