Wise interview question

Yeah, the function you are calling is not thread safe. How could we improve it.

Interview Answer

Anonymous

19 Jan 2022

Well, if the service is not thread safe, we have no chance but calling the function in a synchronized block.