One of the rarely known features in Java among developers is Thread-local storage. The idea is simple, and the need for it comes in ¬†scenarios where we need data that is, well, local for the thread. For example, if we have two threads that refer to the same global variablem but we want them to […]

Read more