Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 888481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:24:19+00:00 2026-05-15T13:24:19+00:00

When you allocate some TLS for thread A in a slot, can you then

  • 0

When you allocate some TLS for thread A in a slot, can you then access that same slot from Thread B?

Is it internally synchronized or how does that work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:24:20+00:00Added an answer on May 15, 2026 at 1:24 pm

    The local variables of a function are unique to each thread that runs the function. This can be accomplished with help of TLS which as already mentioned is local for each thread.
    If you want to share some data between threads there are several options starting from using global or static variables up to memory mapped files and etc… also check thread synchronization if you need to share data between threads.

    The following diagram illustrates how TLS works.

    For more details check MSDN.

    alt text
    (source: microsoft.com)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does there exist a way to allocate some memory and have some sort of
Per-frame I need to allocate some data that needs to stick around until the
Assuming I have a pointer ptr and I allocate some space for that pointer.
Here's the scenario: I want define a base class that allocate some buffer once
I have some memory which is initialized in initWithCoder:. I can verify that before
Suppose we have a program where we allocate some memory and then we have
I have an Application which, reads files from Sdcard and does some intense processing.
I'm trying to design a class that needs to dynamically allocate some memory.. I
I have a function called PreProcessSource, which allocates a boost::wave::context and does some preprocessing;
I allocate a color entry with the next code, then I use it to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.