Incredibuild interview question

Q: How is memory shared between threads in C++?