Re: Managing multiple eu processes
- Posted by jimcbrown (admin) Aug 09, 2010
- 1134 views
Looking for some guidance on using multiple eu processes to interact with a multithreaded server via its api. I realize Eu is not multi-threaded therefore one option may be to execute multiple eu processes on demand?
My thought is to have a main control program (prog A) use system() to execute another eu program (program b) that does the interaction with the server api. How can I monitor/control how many of those are running and if they completed successfully or failed.
Is this even a good idea? Is their a better way? or should I program this in a product that is multi-threaded?
Thanks
What kind of API is this? Just because a server is multithreaded doesn't mean that a client has to be. Usually it's a multithreaded server with one thread servicing a single threaded client, one at a time.
The current Euphoria standard library for 4.0 comes with a pipeio library (std/pipeio.e) that allows for starting child processes and communicating with them.