Revolut interview question

How to prevent shared resources from being access by multiple threads simultaneously.

Interview Answer

Anonymous

1 Aug 2024

using synchronized method, block.