Understanding OpenMP shortcomings regarding fork
问题 I wish to understand what do they mean here. Why would this program "hang"? From https://bisqwit.iki.fi/story/howto/openmp/ OpenMP and fork() It is worth mentioning that using OpenMP in a program that calls fork() requires special consideration. This problem only affects GCC; ICC is not affected. If your program intends to become a background process using daemonize() or other similar means, you must not use the OpenMP features before the fork. After OpenMP features are utilized, a fork is