Domanda di colloquio di MathWorks

This simple program is not thread-safe. Make it thread-safe.