Hi,<br><br>I need help with a couple of things. I will ask them one by one.<br><br>I want to "catch" a newly started process, transfer it to a remote machine, execute this process on the remote machine and then return the result to the original machine. Can anyone guide me with regard to this? Maybe if anyone could point me to the relevant documentation, then also that would be great.<br>
<br>One possible method that I thought of is something like this:<br><br>1. Process A has just been scheduled to execute for the first time on machine A.<br>2. I send a suspend signal to Process A, mostly a SIGSTOP.<br>3. Then I copy Process A's PCB to machine B.<br>
4. On machine B, I send the continue signal to Process A, mostly a SIGCONT.<br>5. Whenever Process A needs user input or needs to output something, I cause a trap, mostly with a SIGTRAP (or I could use SIGSTOP here again). I transfer this I/O request to machine A and let the user interact. I send the interaction back to Process A on machine B. I resume Process A on machine B.<br>
6. I continue these steps till Process A has completed execution.<br><br>I do not know how to do any of these (but I do know how to transfer files between two computer using rsync and how to send messages using TCP/UDP). If someone could point me in the right direction, it would be of great help to me.<br>
<br>Thanks in advance.<br><br>Regards,<br>Rigved Rakshit<br>