Your idea for simulating the double slit experiment with quantized space and concurrent threads is an interesting approach. However, there are a few important considerations to keep in mind.
Firstly, the double slit experiment is a quantum mechanical phenomenon that cannot be fully explained by classical wave mechanics. The interference pattern observed on the screen is a result of the wave-particle duality of photons, which means that they can exhibit properties of both particles and waves. Therefore, simulating the experiment using classical wave mechanics alone may not accurately capture the underlying physics.
Secondly, the use of concurrent threads to simulate the propagation of the wave through space is an interesting approach. However, it is important to ensure that the threads are properly synchronized to avoid race conditions, which could lead to incorrect results. Additionally, the use of a database to store the parameters of the wave may introduce latency and reduce the performance of the simulation.
Thirdly, when the wave hits the screen, it is important to account for the fact that the interference pattern is a result of the superposition of the wave functions of the photons passing through both slits. Simply adjusting the database records for the wave based on which thread runs first may not accurately capture this behavior.
To simulate the double slit experiment more accurately, it may be more appropriate to use a quantum mechanical approach, such as the Schrödinger equation, to model the behavior of the photons. This would require a more complex simulation, but would provide a more accurate representation of the underlying physics.
Overall, while your idea is interesting, it may not fully capture the complexities of the double slit experiment. A more accurate simulation would require a more sophisticated approach that takes into account the quantum mechanical nature of the phenomenon.