Source: wikibot/thread-local-storage
= Thread-local storage
{wiki=Thread-local_storage}
Thread-local storage (TLS) is a programming construct that provides a way to store data that is unique to each thread in a multi-threaded environment. Each thread can have its own instance of a variable that is not shared with other threads, ensuring that there is no conflict or data corruption between threads when they access or modify their respective instances of these variables.