Update index.md

This commit is contained in:
Alex Chadwick Peribañez
2022-07-30 22:17:41 +01:00
committed by Corbin Crutchley
parent 0f607a2765
commit 2284379dc9

View File

@@ -95,8 +95,5 @@ testUser = testUser.increaseAgeByOne(); // instance B
Now in the scenario that Thread 1 is reading `instance A` and Thread 2 wants to increase the age, it will have to do so by creating an `instance B` instead of directly modifying `instance A`, so it is assured that Thread 1 will produce expected behaviour. Now in the scenario that Thread 1 is reading `instance A` and Thread 2 wants to increase the age, it will have to do so by creating an `instance B` instead of directly modifying `instance A`, so it is assured that Thread 1 will produce expected behaviour.
# Conclusion Thanks for taking the time to read this article, and make sure to check other Unicorn Utterance's blog posts!
Thread safety is a very complicated topic, but it's important to understand the concept