Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Software engineering As a designer, beware of extraneous information in the problem specifications for a given design technique! You have been tasked with the design
Software engineering
As a designer, beware of extraneous information in the problem specifications for a given design technique! You have been tasked with the design of the system interrupt service routine processor for our new operating system. Interrupts occur asynchronously (randomly). The hardware accepts interrupts in the order they occur. Only one interrupt is accepted at a time by the hardware (serialization). If more than one interrupt occurs at the same time only one is accepted and the others are placed in a priority queue of pending interrupts maintained by the hardware. Your interrupt service routine will be placed into execution by the hardware when the interrupt is selected for service by the hardware. Your interrupt service routine is expected to save important interrupt information from hardware registers in an appropriate system data structure then create a task to handle the interrupt The address of the system data structure holding the information is passed to the interrupt service routine to facilitate processing. Once the interrupt service task is released to the system process scheduler, the interrupt is considered as served. If there is a pending interrupt, the hardware will start your interrupt service routine again with the next highest priority pending interrupt. If the priority queue for servicing interrupts is empty control of the CPU's should be returned to the OS process scheduler to service user tasks. The information available to you when the interrupt occurs by the hardware follow: Interrupt Record created by hardware Priori Integer from 0 thru 4. The Clock, hard disk,Pointer to data structure USB, Mouse Keyboard Software containing interrupt information smaller the number the captured by the hardware athigher the priority when the time of the interrupts released to the system cess scheduler As an example, consider a mouse interrupt. The following information will be provided by the hardware Priori Mouse Pointer to data structure containing mouse information The system clock might appear as follow Interrupt T Clock Data Structure Pointer to data structure containing time information Priorit A user program interrupt requesting service might appear as Interrupt T Software Data Structure Pointer to data structure containing interrupt information to service the software Priori uest Design the system using static data flow analysis (Jackson)and dynamic dataflow analysis (Yourdon and Constantine)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started