pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SuboptimalEng/cpp-tutorials/tree/main/038-threads-mutex

rel="stylesheet" href="https://github.githubassets.com/assets/repository-6534fbc3f5e83ac0.css" /> cpp-tutorials/038-threads-mutex at main · SuboptimalEng/cpp-tutorials · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Video Overview

  • Previously, we talked about threads
  • What is a mutex?
    • Mutual exclusion (venn diagram, where the 2 circles don't meet)
  • Why do we need mutex?
    • Prevent race conditions + data corruption
    • Show how threads can overwrite data
  • How does mutex fix it?
    • Lock/unlock outside the for-loop
  • Why you need to be careful with mutexes?
    • Lock/unlock inside the for-loop

Titles

  • 10x Slower: The Cost of a Misplaced Mutex in C++

  • How One Line of C++ Can Tank Your Performance

  • Why Your C++ Mutex is 10x Slower Than It Should Be

  • Intro to Mutex | C++ Multithreading Tutorial

  • The C++ Mutex Mistake You Didn't Know You Were Making

  • The Performance Killer: Locking Inside vs. Outside the Loop

References

  • ChatGPT and Gemini
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy