Skip to content

Commit

Permalink
add: real python - thread safety tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshdigievo committed Oct 24, 2024
1 parent d01ef6a commit 7e2c0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-10-24-thread-safety-real-python-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7e2c0e8

Please sign in to comment.