0:00 / 0:00
#volatile#compileroptimization#multithreading
How to use the volatile keyword in C?
Jacob Sorber
195K subscribers • 5 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Jacob Sorber
Intermediate. Assumes working knowledge.
92K views6 years ago1 recommendation
Programming languagesSystems programmingCConcurrency and parallelismEmbedded systems
Jacob Sorber explains the purpose of the volatile keyword in C and how it prevents compiler optimizations in multithreaded or hardware contexts.
Patreon ➤ patreon.com/jacobsorber Courses ➤ jacobsorber.thinkific.com Website ➤ jacobsorber.com --- What is the volatile keyword in C, and how does it work? Some of you for a video about "volatile"— a keyword that concerns and mystifies a lot of beginning programming students. I hope this video demystifies it for you, with some simple examples. Related Videos: Threads (youtube.com/watch?v=uA8X5zNOGw8) Signals (youtube.com/watch?v=83M5-NPDeWs) Optimizations (youtube.com/watch?v=U161zVjv1rs) *** 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 people.cs.clemson.edu/~jsorber/ persist.cs.clemson.edu/ To Support the Channel: + like, subscribe, spread the word + contribute via Patreon --- [patreon.com/jacobsorber] + rep the channel with nerdy merch --- [teespring.com/stores/jacob-sorbers-store] Source code is also available to Patreon supporters. --- [jsorber-youtube-source.herokuapp.com/] Want me to review your code? Email the code to js.reviews.code@gmail.com. Code should be simple and in one of the following languages: C, C++, python, java, ruby. You must be the author of the code and have rights to post it. Please include the following statement in your email: "I attest that this is my code, and I hereby give Jacob Sorber the right to use, review, post, comment on, and modify this code on his videos." You can also find more info about code reviews here. youtube.com/watch?v=k2K2HVg4ArcWhy it's here
1 person recommends thisWhat people say. Recommended as a clear and simple explanation of the volatile keyword in C.