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.
ミリ秒単位で実行される python タイムアウト例外を作成しようとしています。
python signal.alarm 関数の分解能は 1 秒です。
秒単位ではなく、たとえばミリ秒単位で特定のプロセスに SIGALRM シグナルを要求する同等の関数を取得するにはどうすればよいでしょうか?
私はまだ簡単な解決策を見つけていません。
ご意見をお寄せいただきありがとうございます。
代わりにsignal.setitimer()を使用してください。