Can two threads read same CONST block of memory at the same time

Block of memory is initialized and set at the start of program and didn't change(CONST). For example:

static const int a = 10;

If it's dependent on the environment/architecture, then are these settings safe:

  • Intel/AMD
  • Win/Linux 32/64bits
  • Thread per core or all threads at onecore.

Answers


It is safe to read const for all architectures


Need Your Help

dynamic treeview population in a sharepoint webpart

c# sharepoint treeview

I am trying to dynamically populate a treeview object on a sharepoint webpart. For some reason, the node population is triggered automatically and without user input. Below is a sample of how I s...

I need to add background music to the Mainview of my application

iphone ios ios5

My application has 2 views, and I want to play a background sound only on the main view of the app. So when the app launches, it should play the sound until the user quits the app or when the user ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.