
Creational Design Patterns in Modern C++ - Multithreading Issues
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
The video tutorial explores the challenges of using a logger in a multithreaded application. It begins by demonstrating the problem of multiple logger instances being created when two threads call the instance method simultaneously. The solution involves using a mutex to ensure thread safety, making the logger class suitable for multithreaded applications. However, the video also highlights the performance drawbacks of this approach and introduces the double checked locking pattern to mitigate these issues. Finally, it warns about potential pitfalls of the double checked locking pattern, such as non-atomic operations leading to invalid values.
Read more
1 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
What new insight or understanding did you gain from this video?
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?