WeConvene interview question

You are shown code that in parallel threads performs a summing operation on a variable external to the threads.

Interview Answer

Anonymous

23 Oct 2021

While the intention of the code is clear, the code itself wouldn't be guaranteed to produce the expected outcome. It would be identified upon first execution if someone was ever to write such code. (no one would ever write such code) This also does not represent a real world scenario.