You are to implement a game of Bingo. Your implementation should consist of three processes, i.e., three separate programs. Each process must have a visible window as it runs. The main process is the manager. It should start the other two (player) processes and manage the game.
Does any1 know how to go about this in a visual environment like c++ or c#??
If you need 3 separate process you could investigate spawning threads.
But, you specifically asked about 3 separate programs. In that case there are some multiple architectures you may consider. You should choose them one that best fits the quality attributes you application requires. There are several options. Here are two...
1) You could have a shared repository that all 3 applications can access. For example - a database or file. The apps could poll the repository for the lastest event (selection of a bingo ball) and respond to it.
2) Another option is offer a publish-subscribe mechanism (events, delegates) or some interprocess messaging, that all processes could access.
It all comes down to these questions:
1. what are the over-arching quality attributes (performance, security, modifiability, scalability, etc) that you must achieve?
2. what is the goal? It sounds like a homework assignment. Is a distrubuted app? All running on a single machine? What are the constraints that are driving your design?
The answers to those questions will tell you which architecture to implement.
Reply:i can give u some suggestions in VC#. what u need is an application that uses thread for the three different process so that all three can run simultaneously...
u can create three WinForms for each process and implement threading in them to acheive wat u want...
the manger class can create objects and control it or it can create threads and call the three processes accordingly
for more information u can goto
www.csharpcorner.com
Reply:After executing the other two programs, you must send messages (In WIN32 using the SendMessage or SendMessageEx commands) to the other windows.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment