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.
Linux で実行され、一定量のスレッドを作成する C コードがあります。スレッドの 1 つで、特定の条件が発生した場合にプロセス全体を終了するようにしたい。exit() コマンドを調べましたが、使い方がよくわかりませんでした。
複数のスレッドがありますが、すべてが 1 つのプロセスにあるため、exit を押すだけで多くのことが殺されます。