+ Reply to Thread
Results 1 to 2 of 2

Thread: What is thread locale storage?

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    49

    What is thread locale storage?

    What is thread locale storage?

    How to use it in VC++?

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    24
    In multithreaded programs, data is shared among all threads of a given process, whereas thread local storage is the mechanism for allocating per-thread data.

    Hence, each of your thread has its own copy of data!

    There are two ways to use Thread Locale Storage (TLS).
    a. using __declspec(thread)
    b. TLS* APIs

    For further information:
    http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx
    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts