Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can we implement this?
The System A sends video at 10mbps where system b can take up only 4mbps.how we can implement this.Also there should be continous streaming of video? communication happens thru socket. tcp/ip.
anybody know the logic in java ? there is a double buffer solution? i dont know.
If you study operating systems, telecommunications, or electronics, you’ll learn that buffers are good for this.
They can be an elastic way to cope with temporary differences in speed. If the speed difference is permanent, and the buffer has a finite size, then System A will eventually have to pause or risk losing its output.