Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: IRQはなぜ必要? #746

Open
marihachi opened this issue Aug 3, 2024 · 3 comments
Open

Question: IRQはなぜ必要? #746

marihachi opened this issue Aug 3, 2024 · 3 comments
Labels
question Further information is requested

Comments

@marihachi
Copy link
Contributor

marihachi commented Aug 3, 2024

IRQは300ステップごと(0~299)に発生させていますが、IRQ発生時は5ms遅延させているだけで特に何をしてるわけでもないようです。
これは何のための処理ですか?

@marihachi marihachi added the question Further information is requested label Aug 3, 2024
@uzmoi
Copy link
Member

uzmoi commented Aug 3, 2024

無限ループするコードを実行したときにホスト側がハングしてしまうことへの対策だと思います。

@marihachi
Copy link
Contributor Author

marihachi commented Aug 4, 2024

playgroundで実行してみるとそんな感じみたいですね
頻度を変えてみたり、待ち時間を変えてみるとパフォーマンスにそこそこ影響を与えてるようなのが少し気になってます。

@FineArchs
Copy link
Member

related: #665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants