views:

48

answers:

3

It seems difficult to design a threading package in OO class than in functional programming.

+1  A: 

Do you have a specific question? You have asked an extremely similar question here, and I would call this one a duplicate. You can look at the design and answers in that thread to give you an idea.

But we cannot help you until you ask a specific question.

GMan
A: 

Threading is a difficult concept. But OO languages are perfectly suitable for implementing those.

Define a thread class, that runs in its own thread. Create a subclass and override the required methods.

Gamecat
A: 

On the contrary, there are zillions of threading libraries for OO languages. Which specific language do you think has difficulties in this area?

anon