The fork() man page says the following. Is this for 6.2? It seems to be a
very constraining caveat!!
Any idea about how one can achieve it: fork when there are multiple threads
(actually only 2 threads) present?
Currently, fork() is supported only in single-threaded applications. If you
create a thread and then call fork(), the function returns -1 and sets errno