请高手解释一下啊,sos!!!

解决方案 »

  1.   

    线程局部存储(Thread Local Storage:TLS)
    参见Windows Programming的解释是"唯一于各个线程的持久性存储"MSDN的解释是
    "Thread Local Storage (TLS) is the method by which each thread in a given multithreaded process may allocate locations in which to store thread-specific data.
    -在多线程程序中, TLS实现了每个线程都可以为自己特定的数据分配存储空间的方法"由以下4个API来操作TlsAlloc, TlsGetValue, TlsSetValue, TlsFree
      

  2.   

    那tls槽是指什么?我不明白线程局部存储标志和线程之间的关系,请您解释一下。
      

  3.   

    看<<windows 核心编程>>
    讲得较细.