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.
現在、sigaction を使用してハンドラーを SIGALRM シグナルに関連付ける C コードがいくつかあります。次に、alarm(TIME_OUT_IN_SECONDS) を実行します。問題は、秒ではなくミリ秒が必要であり、アラームが整数を取ることです。シグナルをミリ秒単位で発火するように設定するにはどうすればよいですか?
を使用してはsetitimer()どうですか?
setitimer()