mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-09 21:49:41 +00:00
Fix formatting
This commit is contained in:
parent
c5b1c9da0a
commit
2bc78238ff
|
@ -88,10 +88,10 @@ Consider this code:
|
|||
3
|
||||
```
|
||||
|
||||
In the example here, we can see that python keeps a reference count for the empty list object, and in this case, it was
|
||||
\3. The list object was referenced by a, b and the argument passed to `sys.getrefcount`. If we didn't have locks,
|
||||
threads could attempt to increase the reference count at once, this is a problem because what would actually happen
|
||||
would go something like this:
|
||||
In the example here, we can see that python keeps a reference count for the empty list object, and in this case, there
|
||||
were 3 references. The list object was referenced by a, b and the argument passed to `sys.getrefcount`. If we didn't
|
||||
have locks, threads could attempt to increase the reference count at once, this is a problem because what would
|
||||
actually happen would go something like this:
|
||||
|
||||
> Thread 1: Read the current amount of references from memory (for example 5) <br>
|
||||
> Thread 2: Read the current amount of references from memory (same as above - 5) <br>
|
||||
|
|
Loading…
Reference in a new issue