Wise Interview Question

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

Interview Answer

Anonymous

Jan 19, 2022

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