Subj : Re: Overhead of getting current thread id To : comp.programming.threads From : Oliver S. Date : Fri Apr 08 2005 01:49 am > Is someone aware of any faster alternatives to > GetCurrentThreadId() in Win32? Or is it already > optimal? That's the disassembly of GetCurrentThreadId() mov eax,dword ptr fs:[0x18] mov eax,dword ptr [eax+0x24] ret Doesn't this look pretty fast ? .