Is performance affected if multiple threads use the same object? [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
The object in this case is a dictionary with some search methods. Only reading operations.

Quick answer: No.
Quite the opposite, it will speed up your program, especially if you have an object that needs to load a lot of data into memory.
Just make sure nothing can write to the object while the threads run.

Related

Water particle model [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to design a physical particle system in order to model/simulate a flowing water on a terrain. I want to use C (maybe C++) in order to do that. Do you guys know any good examples or a good starting point to do this?Thank you!
maybe can be useful Fluid simulation library

C++ "infinite" length text [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
my task is to make a program that can store arbitrary long text in c++.
I have no idea how to solve this.
Also, you cannot use STL.
someone please help
allocate initial buffer (malloc())
store data into buffer until full (strcpy(), strcat(), memcpy()...)
reallocate to a bigger buffer (realloc())
goto 2

Multiple inheritance in C++ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
As you know, C++ allows multiple inheritance. But, would it be a good programming approach to use multiple inheritance or it should be avoided?
Thanks.
In general, it's not needed and can make your code more complex.
But there are cases where it's useful. As long as it's useful and isn't causing your code to become unmanageable, I see no reason to avoid it.

opening file stored on internet via c++ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
need a small program to learn basics on how to open a file stored on net for reading via c++.
One relatively easy way is to use libcurl: http://curl.haxx.se/

remote_api in google app engine is the best way to store data? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i don't know what the remote_api will do
thanks
You can read about remote_api here: http://code.google.com/appengine/articles/remote_api.html
At a high level, it allows you to write code which interacts with your appengine application code and datastore without having to go through the request/response model.