How does `ThreadLocal` work?

Technical