Inheritance anomaly in C++ and concurrent programming [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.
I am reading about concurrent programming. Here it is mentioned about inheritance anomaly problem.
Inheritance anomaly is mentioned in following article on Active object pattern on page 4.
http://www.cs.wustl.edu/~schmidt/PDF/Act-Obj.pdf
Can any one mention what is inheritance anomaly problem?
Thanks!

The issue seems to occur from back in 1993 when they thought that inheritance for code re-use was a good idea.
It usually isn't. It wasn't then but they thought it was.
Inheritance should be for polymorphic behaviour. Templates or generics or composition should be used for code-reuse.
The main article seems to be this one

Related

Which technology is used? [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 am thinking which technology is needed for making copy of this web service: http://dziswieczorem.pl/
Does someone know any almoust-ready solution (especially for map-things) implemented in django?
Or maybe could anyone give me tips in which technology it would be easier to implement something like that?
To be more concrete:
Is there some ready template containing world map like on page that I wrote about above? I also need a chat feature.
For the map functionality, you may get some benefit from django-gmapi, but I've never tried it so I don't know if it's exactly what you want or not.
As far as chat, there seem to be a few options here that you could consider: http://www.djangopackages.com/grids/g/chat/

Lockless vector [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 recently got interested in lockless programming and attempted to write implement a fixed-size mostly-lockless vector (github link). While it works, I'd love to get some feedback from more experienced people if my logic looks buggy or suspicious.
Are there any standard techniques that are particularly useful when testing out lockless data structures?
std::vector is lockless. In general, any good vector implementation will be lockless, because the granularity of a vector is too low for locks to be of any use.

CPU caches aware C++ / C programming [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.
I was going through Scott Meyer's podcast on CPU CACHES AND WHY YOU CARE It seems this will make code run faster, is there any open source where such coding is done for reference.
Or anybody has example of design of data structures/algorithms based on CPU caches aware
Sure, the entire Linux kernel is implemented to be cache-aware.
For more details there is highly recommended paper What Every Programmer Should Know About Memory.
Linear algebra is sensitive to cache problems. The BLAS subroutines allow one to abstract away from these concerns

C++ Practice Programs [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.
I am currently learning C++ and now understand things like classes and pointers, etc.
Anyone have an idea of what programs I should practice writing when teaching myself C++?
Try reading books that have exercises at the end of every chapter and try making them.
You can check Thinking in C++. The books are available online and they have exercises at the end of each chapter.

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.