|
Suppose there are two separate systems connected to each other just by a common storage say a hard disk then what can be the ways we communicate between the two systems?
|
|
|
|
|
IMO, a simple file read mechanism should be enough.
|
|
|
|
|
Thanks Abhinav for the reply.
but how to sync the two process on the two systems reading a common memory say a file?
|
|
|
|
|
A publisher subscriber mechanism perhaps?
As soon as a file is published (pushed to the local storage), all subscribers read the file and process that data.
Just a thought. There might be other better ways of doing the same thing.
|
|
|
|
|
If the communication needs to be 2-way then I would suggest that each system (you seem to be describing 2 but there could be more) have its own private output file which is read by the other(s). Each system writes its 'output' info to the file which would be seen as 'input' to the other(s). This avoids problems with 2 or more programs trying to write to the same file.
--
Harvey
|
|
|
|