Quote Originally Posted by [email protected] View Post
Now I want to make this class threadable in the sense I want to the class fns to be executed in a thread.
So I wrote the following class:
Please use code tags when posting code. It's very hard to read your code without them.
Also, check your computer for malware. You seem to have a virus that replaces normal English words with random combinations of consonants just before you submit your post.

You might want to have a look at std::thread (if you use MSVC 2010) or boost::thread. It has a lot cleaner interface than your Thread class.
Quote Originally Posted by [email protected] View Post
Now I want to know how to call ALL the various fns of class rectangle from within execute() in the same way as I called in main earlier.
You can call functions in the same way you do it from any function, regardless of which thread it is executed in. The only thing you have to be careful of is when multiple threads access the same object and at least one writes to that object. E.g. if one thread calls set_values on an instance of CRectangle and another thread calls area() on the same instance then you need to synchronize those calls using a mutex or equivalent.

You'll probably find more relevant examples if you search for some tutorials or articles about multi-threading in C++. Your example is not very useful, because there is no benefit of using multiple threads.