Design of multithreaded prog using OO concepts

R

ravinder

I wanted to develop a multithreaded program using OO concepts on windows platform.
Problem: I have to simulate two layers(similar to TCP/IP stack layers), and the layer functionality is of finite state machine type i.e after receiving any event(either after receiving message or any timer expiry), state change happens internal to layer. And there will be message transfer between two layers.
My idea is to put layer specific data in the class and run this under one thread. This way i will be having two threads running for two layers and two classes represent layer specific data. Now i want to have state machine running as part of layer, so how should this be enhanced to support the state machine.
I want to use OO concepts with multithreaded concepts. If i am wrong in my approach, please correct me so that i can use the OO concepts for this problem.
Expecting valuable comments from the group..

thanks
ravi
 
V

Victor Bazarov

ravinder said:
I wanted to develop a multithreaded program using OO concepts on windows platform.
Problem: I have to simulate two layers(similar to TCP/IP stack layers),
and the layer functionality is of finite state machine type i.e after
receiving any event(either after receiving message or any timer expiry),
state change happens internal to layer. And there will be message transfer
between two layers.
My idea is to put layer specific data in the class and run this under one
thread. This way i will be having two threads running for two layers and two
classes represent layer specific data. Now i want to have state machine
running as part of layer, so how should this be enhanced to support the
state machine.
I want to use OO concepts with multithreaded concepts. If i am wrong in my
approach, please correct me so that i can use the OO concepts for this
problem.
Expecting valuable comments from the group..

Why are you expecting comments from THIS group? It's neither OOD,
nor multithreading, nor Windows. Each of these concepts has its
own newsgroup: comp.object, comp.programming.threads, and
comp.os.ms-windows.programmer, respectively.

When you have a C++ _language_ question, do come back and ask.

Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top