Fork processes.
Jules Bean
jmlb2 at hermes.cam.ac.uk
Wed Feb 10 00:34:26 PST 1999
On Mon, 8 Feb 1999, wayne wrote:
> Alexandre Oliva wrote:
>
> > On Feb 8, 1999, wayne <infotechsys at pivot.net> wrote:
> >
> > > how to do a fork in a java program ? Can this be done?
> >
> > Nope
> >
> > --
> > Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
> > oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
> > Universidade Estadual de Campinas, SP, Brasil
>
> I want to make sure I understand you. If I have a Invoice system.
> Customer system, Inventory
> control system , and they all interact with one another, then I would
> drive them thru one main()
> method.
> Thanks for your time.
> Wayne
Absolutely.
In fact, you might not even need threads, since the control between the
three processes might be totally event/message driven.
For example, something like this:
...
static void Main(string[] args) {
...
i = new InvoiceHandler();
c = new CustomerHandler();
v = new InventoryHandler();
...
}
....
[in some menu control routine]
openNewCustomerDialog();
....
Then the code in the customer dialog will call methods in the customer
handler to register the new customer, and so on..
Jules
/----------------+-------------------------------+---------------------\
| Jelibean aka | jules at jellybean.co.uk | 6 Evelyn Rd |
| Jules aka | jules at debian.org | Richmond, Surrey |
| Julian Bean | jmlb2 at hermes.cam.ac.uk | TW9 2TF *UK* |
+----------------+-------------------------------+---------------------+
| War doesn't demonstrate who's right... just who's left. |
| When privacy is outlawed... only the outlaws have privacy. |
\----------------------------------------------------------------------/
More information about the kaffe
mailing list