Hmm, for example: the calculation for line 1 has done and the amount is displayed in the 7segment, then calculation for line 2 is in progress, while it is in progress, there is suddenly certain amount of production detected in line 3.
At this condition, we have some choice:
1. continue to count on line 2 and wait till it is displayed (it means it will cost some seconds(delayed seconds), coz delayed second is needed to display smoothly)
2. jump to count on line 3 and then back to line two, anyway I think it will be messy.
So far only this possiblity I can guess since I am newbie in C.
Could you give some experience idea :D?