Distributed OS - Remote code execution

Programming, for all ages and all languages.
Post Reply
exos
Posts: 4
Joined: Wed May 27, 2009 12:45 pm

Distributed OS - Remote code execution

Post 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).
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

Re: Distributed OS

Post by xDDunce »

<ignore>
mis-interpretation of OP
</ignore>
Last edited by xDDunce on Wed May 27, 2009 3:00 pm, edited 1 time in total.
skyking
Member
Member
Posts: 174
Joined: Sun Jan 06, 2008 8:41 am

Re: Distributed OS - Remote code execution

Post 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).
exos
Posts: 4
Joined: Wed May 27, 2009 12:45 pm

Re: Distributed OS - Remote code execution

Post 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.
Post Reply