Page 1 of 1

Distributed OS - Remote code execution

Posted: Wed May 27, 2009 12:57 pm
by exos
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).

Re: Distributed OS

Posted: Wed May 27, 2009 1:26 pm
by xDDunce
<ignore>
mis-interpretation of OP
</ignore>

Re: Distributed OS - Remote code execution

Posted: Wed May 27, 2009 1:42 pm
by skyking
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

Posted: Wed May 27, 2009 1:58 pm
by exos
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.