Mention fork()

This commit is contained in:
Antoine Pitrou 2017-09-08 22:08:27 +02:00
parent 2c88e2d062
commit bc0a86eb8d
1 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,10 @@ is currently guaranteed that finalizers will always be called in the main
thread. Breaking this property may induce subtle behaviour changes or bugs, thread. Breaking this property may induce subtle behaviour changes or bugs,
for example if finalizers rely on some thread-local values. for example if finalizers rely on some thread-local values.
Another problem is when a program uses ``fork()`` for concurrency.
Calling ``fork()`` from a single-threaded program is safe,
but it's fragile (to say the least) if the program is multi-threaded.
Explicit collections Explicit collections
-------------------- --------------------