parallel programming concept
Posted on 2002-05-07
If I am gonna write a library, which has a base class...this base class will be inherited by many other classes in the main application. But only one thread will call object of this class, or the object which inherited this class...Do I need to add some thread synchronization mechanism to this base class?
a)FS_MyGenericClass is the generic class
b)FS_MyDerivedClass is the inherited class
But there will be many FS_MyDerivedClass running concurrently on their own threads
Also, please give me some URLs for materials about this kind of question as i am gonna write a thread-safe library, which has many generic classes.