What if some user intentionally write a virus to disable interrupts? Probably he cannot do that in user mode, what if he writes a program running in kernal mode and does that bad stuff? Can he do this? This leads me to think about the protection in operating system. If it's pure priority-based scheduling instead of RR (considering real-time systems), and a lower priority thread disables the interrupt, then a higher priority thread arrives, will the lower priority thread be preempted? If that's disabled, scheduling is disabled as well and the current thread continues executing until it yeilds CPU. CPU scheduling(e.g., Round-Robin) is based on clock interrupt. Hey guys, is it true that all the process/thread scheduling will be disabled if interrupt is disabled? What I know is interrupt includes clock interrupt and other interrupts.
0 Comments
Leave a Reply. |