Multi-threading: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
Though it is possible to run multi-threaded programs, running those on different cores is not possible "as-is". One core is always dedicated to the OS, hence you will never get 100% of both cores. | Though it is possible to run multi-threaded programs, running those on different cores is not possible "as-is". One core is always dedicated to the OS, hence you will never get 100% of both cores. | ||
Using CloseHandle() with a KThread handle will terminate the specified thread | 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. | 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. |