Cw160:
I'm not quite sure what you mean by synchronize
Let's say I wanted to tell you what the lottery numbers were for the last 50 years. Say its 5 numbers per lottery. I start talking, and you start writing:
120, 12, 76, 23, 64, 23, 195, 123, 634, 136
At this point, since you know it's 5 numbers per lottery, and you started listening before I started talking, so you know that the first 5 numbers go to the first lottery, and the next 5 go to the next lottery. You write it down as such:
Lottery #1: 120, 12, 76, 23, 64,
Lottery #2: 23, 195, 123, 634, 136
But what happens if you don't start listening until after I've spoken the first two numbers. What you hear, instead, is
76, 23, 64, 23, 195, 123, 634, 136, 1, 99
So you write it down as such
Lottery #1: 76, 23, 64, 23, 195,
Lottery #2: 123, 634, 136, 1, 99
That's what is meant by synchronization; you need a way for the receiver to know where in the data set the sender is when the receiver starts listening. How you do this will depend on the sender. Does it send a delimited character like a new line? Is there a temporal break in time between sets of data? Could the value tell you something about its placement in the set?