开发者

Modify Timer Interrupt in Linux

开发者 https://www.devze.com 2023-02-12 09:28 出处:网络
At college I\'m studying Operative Systems, and as a first part of the project we have to modify the Timer Interrupt to execute my own code, may be with threads, and I think that Linux present less re

At college I'm studying Operative Systems, and as a first part of the project we have to modify the Timer Interrupt to execute my own code, may be with threads, and I think that Linux present less restrictions to access the Interrupt Vector that Windows does, is not?

Can yo开发者_如何学JAVAu give me more details if it's better use Windows or Linux (like Ubuntu) to do this.

Thanks.


I would use Linux, because I think you might fail your assignment if you use Windows. The reason being that the commonly accessible timers (i.e. non-driver stuff) under Windows are not really interrupts, they're messages posted to your thread's message queue.

Whereas under Linux signal/sigaction in combination with timer_create will send a signal, which really counts as "interrupt".

0

精彩评论

暂无评论...
验证码 换一张
取 消