How VITE will maintain the synchronization of events that are coming one after another?
Hi Nuitusys,
The synchronization will be handled by the application on the backend. With out getting too technical or getting into too much detail, I can tell you that synchronization will be handled by monitors and code blocks. So at a high level it will work something like this. We check the location where the monitor is located for the code block associated with it. Then we would basically loop through the threads checking each for a lock on the monitor. If no locks are present get copy of all variables. If lock is present then wait for lock to be removed then get a clean copy of all variables replacing the dirty state variables. Then we run the block code. Next we will update variables that are changed inside of the block code and finally unlock the monitor. There are of course multiple ways of handling this scenario but this is the solution we have chosen that best fits our needs.
Thanks