Hello,
I've been looking on writing my own OS - for now just planning...
I'm considering a something like a distributed OS for home use. The problem is I can't
think out how to send a code and execute it on another machine, over internet.
Could this even be possible?
I've searched information about RPC and similar but it's oriented on calling a function
on server not actually sending a code to execute in process and sending back result.
On this matter maybe you could give some clues on a way to get the execution code
for function from a binary file (dynamic library, for example).
Distributed OS - Remote code execution
Re: Distributed OS
<ignore>
mis-interpretation of OP
</ignore>
mis-interpretation of OP
</ignore>
Last edited by xDDunce on Wed May 27, 2009 3:00 pm, edited 1 time in total.
Re: Distributed OS - Remote code execution
Yes it's possible, but perhaps not always practical. You must have a basic server running on every computer that is part of the OS so that you can launch new processes (or servers). Starting new programs can be done via RPC either by supplying the executable image directly via the RPC call or by supplying a filename (some of the computers must then contain filesystem services so that other computers may read the files over the network).
Re: Distributed OS - Remote code execution
Thanks for fast replays! Have I understood correctly - it could be possible
to create some sort of remote thread of an application, send it to another
computer to do the work and send back the result - like advanced remote procedure call,
so not only the data but the code to execute is sent.
Or it would be like send the executable to that machine call RPC call to execute it and
receive a result.
It would be like executing received code in some sort of sandbox.
to create some sort of remote thread of an application, send it to another
computer to do the work and send back the result - like advanced remote procedure call,
so not only the data but the code to execute is sent.
Or it would be like send the executable to that machine call RPC call to execute it and
receive a result.
It would be like executing received code in some sort of sandbox.