It is a feature that allows each thread to have its own memory space for storing and retrieving data using global allocation indexes. When a thread starts, it is allocated a block of dynamic memory and stores a pointer to this memory in a thread slot.
Thread Local Storage (TLS)
![](https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=924,h=490,fit=crop/A1aBoqg8XrTLxEyM/tls-mP42ZG638jsryrez.png)
![](https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=328,h=188,fit=crop/A1aBoqg8XrTLxEyM/tls-mP42ZG638jsryrez.png)
![](https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=1920,fit=crop/A1aBoqg8XrTLxEyM/wallhaven-yjqyyx-mnlqZM4Dbws43kb7.jpg)