Thread local storage in C @JacobSorber
Thread local storage in C  @JacobSorber
Uploaded February 2026 | Updated November 2026, 4 days ago
Patreon ➤ patreon.com/jacobsorber
Courses ➤ jacobsorber.thinkific.com
Website ➤ jacobsorber.com
---
Thread local storage in C // Thread local variables. They're kind-of like global variables and kind-of like local variables. Thread-local variables allow you to easily duplicate a variable across multiple threads, which can help with thread safety and performance.

Related Videos:
Programming with threads (playlist): youtube.com/playlist?list=PL9IEJIKnBJjFZxuqyJ9JqVYmuFZHr7CFM

***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.


About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:
jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/

To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [patreon.com/jacobsorber]

Source code is also available to Patreon supporters. --- [jsorber-youtube-source.herokuapp.com/]
Thread local storage in CWhat is stream orientation? (fwide)The two main types of network socketConst, const pointers, and pointers to const things (in C)Is there Garbage Collection in C and C++?Reinvent The Wheel (Programming Project Advice)How not to debug your programs.How Look Up Tables (LUTs) make your code Smaller, Faster, and Better (example in C)Write your own ls (dir listing in C)Project Setup: Automated Testing with Make (using queue example)How to Safely and Simply Create Temporary Files (in C or C++)How to Debug a Program when the Output Looks Right
Jacob Sorber |

Thread local storage in C

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER