--- title: Threads TARGET DECK: Obsidian::STEM FILE TAGS: threads tags: - threads --- ## Overview **Thread-Local Storage** (TLS) is a memory management method that uses static or global memory local to a thread. In C17, the keyword `_Thread_local` is used for defining thread-local variables. %%ANKI Basic In the context of memory management, what is TLS an acronym for? Back: **T**hread-**L**ocal **S**torage. Reference: “Thread-Local Storage,” in _Wikipedia_, October 21, 2024, [https://en.wikipedia.org/w/index.php?title=Thread-local_storage](https://en.wikipedia.org/w/index.php?title=Thread-local_storage&oldid=1252543227). END%% %%ANKI Basic What storage class specifier is used to modify TLS? Back: `_Thread_local` Reference: “Thread-Local Storage,” in _Wikipedia_, October 21, 2024, [https://en.wikipedia.org/w/index.php?title=Thread-local_storage](https://en.wikipedia.org/w/index.php?title=Thread-local_storage&oldid=1252543227). Tags: c17 END%% %%ANKI Basic What is thread-local storage? Back: A memory management method that uses static or global memory local to a thread. Reference: “Thread-Local Storage,” in _Wikipedia_, October 21, 2024, [https://en.wikipedia.org/w/index.php?title=Thread-local_storage](https://en.wikipedia.org/w/index.php?title=Thread-local_storage&oldid=1252543227). END%% ## Bibliography * “Thread-Local Storage,” in _Wikipedia_, October 21, 2024, [https://en.wikipedia.org/w/index.php?title=Thread-local_storage](https://en.wikipedia.org/w/index.php?title=Thread-local_storage&oldid=1252543227).