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
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