next up previous contents
Next: DICE_function Up: Miscellaneous Previous: Miscellaneous   Contents


Spawning

Client spawning can be done by DICElib. There are currently three ways of spawning:

You should use the one that suits you best. The first two require a copy of the program to be available in the clients (but may be in other path; see section 2.2), while the latter doesn't, but requires BProc to be installed.

If you'd rather spawn the processes yourself, you can do it too. First of all, you still need the dicerc file, which is used to gather information such as the special functions, number of clients, etc. Then run your program in the control:

[program] -dice-spawn none
And in the clients:

[program] -dice-client-only -dice-control-is [control address]
You can easily implement a script to spawn your program in a way that fits your setup. Take a look at tests/spawner, a small script that spawns processes in localhost.



2001-12-09