Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロセスをフォークして、親プロセスがフォークされたプロセスに関数を呼び出してその結果を親に返すように指示することは可能ですか? もしそうなら、どうすればこれを達成できますか? プロセス間通信を実行する最善の方法が、パイプまたはソケット (またはその他の構造) を使用することであるかどうかはわかりません。Unix ベースのシステムで IPC を実行し、C/C++ でプログラミングすることにのみ関心があります。