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

  • SEARCH
  • Home
  • 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 883341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:34:23+00:00 2026-05-15T12:34:23+00:00

In many MSDN documents, this is written under the Thread Safety heading; Any public

  • 0

In many MSDN documents, this is written under the Thread Safety heading;

“Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.”

for example; here

can someone explain it please in a rather simple way?
Thank you 🙂

  • 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-15T12:34:23+00:00Added an answer on May 15, 2026 at 12:34 pm

    Eric Lippert has an excellent blog post about this. Basically it’s somewhat meaningless on its own.

    Personally I don’t trust MSDN too much on this front, when I see that boiler-plate. It doesn’t always mean what it says. For example, it says the same thing about Encoding – despite the fact that we all use encodings from multiple threads all over the place.

    Unless I have any reason to believe otherwise (which I do with Encoding) I assume that I can call any static member from any thread with no corruption of global state. If I want to use instance members of the same object from different threads, I assume that’s okay if I ensure – via locking – that only one thread will use the object at a time. (That’s not always the case, of course. Some objects have thread affinity and actively dislike being used from multiple threads, even with locking in place. UI controls are the obvious example.)

    Of course, it becomes tricky if objects are being shared unobviously – if I have two objects which each share a reference to a third, then I may end up using the first two objects independently from different threads, with all the proper locking – but still end up corrupting the third object.

    If a type does advertise itself to be thread safe, I’d hope that it would give some details about it. It’s easy if it’s immutable – you can just use instances however you like without worrying about them. It’s partially or wholly "thread-safe" types which are mutable where the details matter greatly.

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

Sidebar

Related Questions

Consider the IEnumerable extension methods SingleOrDefault() and FirstOrDefault() MSDN documents that SingleOrDefault : Returns
Many articles (e.g. msdn ) have said that a circular reference cannot be cleaned
Background: I am aware of this SO question about Transactional NTFS (TxF) and this
In many of my Access (2002) programs I use the GetOpenFileNameA and GetSaveFileNameA functions
I'm using Visual Studio 2008 Team System with SP1, and I've noticed an annoying
I have been looking at whether our MSDN Premium Subscriptions would cover upgrading our
Currently the documentation where I work is in a bit of a state. There
First, let me use one sentence to let out some frustration: My god, developing
I'm trying to find about ALL the possible options that I can set in

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.