sketch. time to thread
This commit is contained in:
parent
64727ac279
commit
8b9e1a38cb
2 changed files with 241 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* THREADIN THE LINUS: https://linux.die.net/man/2/sched_setaffinity
|
||||
*/
|
||||
/*
|
||||
*THREADIN THE WINDOS: https://learn.microsoft.com/en-us/windows/win32/procthread/process-and-thread-functions
|
||||
*/
|
||||
|
||||
//clangbug: https://bugs.llvm.org/show_bug.cgi?id=24232
|
||||
//tsc synced across cpu intel: https://community.intel.com/t5/Software-Tuning-Performance/TSCs-per-logical-processor-Per-socket/m-p/1121318
|
||||
//lfence: https://hadibrais.wordpress.com/2018/05/14/the-significance-of-the-x86-lfence-instruction/
|
||||
|
|
@ -28,7 +35,7 @@ Intel(R) 64 and IA-32 Architectures Software Developer's Manual Volume 3 (3A, 3B
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#define _WIN32_WINNT _WIN32_WINNT_WIN10 //0x0A00
|
||||
#define MAX_KEY_LENGTH 255
|
||||
#define MAX_VALUE_NAME 32768
|
||||
#define MAX_VALUE_NAME 32767
|
||||
#include <Windows.h>
|
||||
#include <winreg.h>
|
||||
#include <stringapiset.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue