From 7e2c0e8b9ebb8482a429b259e1b6358c9aa534e1 Mon Sep 17 00:00:00 2001 From: Adarsh D Date: Thu, 24 Oct 2024 19:35:47 +0530 Subject: [PATCH] add: real python - thread safety tutorial --- _posts/2024-10-24-thread-safety-real-python-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2024-10-24-thread-safety-real-python-tutorial.md b/_posts/2024-10-24-thread-safety-real-python-tutorial.md index fb5a716..b746c8e 100644 --- a/_posts/2024-10-24-thread-safety-real-python-tutorial.md +++ b/_posts/2024-10-24-thread-safety-real-python-tutorial.md @@ -21,7 +21,7 @@ class SingletonClass(object): return cls.instance ``` -The SingleTonClass is supposed to have only 1 object, but the code can lead to the creation of more than one instances +The `SingletonClass` is supposed to have only 1 object, but the code can lead to the creation of more than one instances when executed in a multithreaded environment. Read the tutorial to spot such race conditions and learn to fix them using Python's synchronization primitives.