Can I synchronize objects of different computers?

Hi, I am working with sound files and I have the files in different computers. Then they have to be Synchronized for being played at the same time. I work with Players(it磗 an imported javax class to work with sounds), and I have done the synchro of different sounds, but in the same computer. I don遲 know if the synchro is able to be done between different computers..and using RMI..

Thanks.

[405 byte] By [berlinerwurma] at [2007-11-27 1:35:26]
# 1
You mean you want multiple computers to play at the same time? like an orchestra?Nope.
ejpa at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 2
I can think of two obstacles to such a thing.1. Windows/Linux are preemptive multitasking OSes. You need a real time OS for such synchronization.2. IP does not provide any time-ability for its data. You would need a network protocol that actually cares about time.
_dnoyeBa at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 3
A dedicated direct link between the two machines can be good (fast) enough. Maybe the synchronisation of the time on both machines suffices?
BIJ001a at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 4
> A dedicated direct link between the two machines can> be good (fast) enough. > > Maybe the synchronisation of the time on both> machines suffices?Hardly.
_dnoyeBa at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 5
Then, It磗 possible to do it in other way?It has do have some solution..
berlinerwurma at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 6

The first question is how close a synchronization do you need?

The basic problem is that the two machines aren't running the same CPU clock, so you can't synchronize them any more precisely than what you can achieve via a time agreement protocol and/or frequent interchanges over the network, which introduce their own problems of course.

ejpa at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 7
have a look at: https://cajo.dev.java.net/hope it helps
Peter_Parker_a at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...
# 8

Yes, the solution is first to use a 'real time' operating system. This is the whole reason for the existence of real time operating systems. Its what 'real time' is all about. If you are not using such an OS, you can not achieve what you speak of.

Once you get a real time OS, then you need a 'real time' network protocol.

_dnoyeBa at 2007-7-12 0:43:55 > top of Java-index,Core,Core APIs...