Explore BrainMass


Interrupts can happen often over the course of a program execution. They are not always due to system failures and may be added in consciously by the programmer as a benchmark or other form of check. In essence, an interrupt is a signal sent to a processor from either hardware or software that tells the processors that there is an event occurring which requires its urgent attention. In response, the processor will stop executing the instructions in its current thread of activity, save that state so it may return to it after, and begin running an interrupt handler program designed to deal with such events.

There are two main kinds of interrupts that can be signalled:

  • Hardware interrupts

Hardware interrupts are signals that originate from an external device to the processor such as a disk controller, mouse, etc. An easy example of a hardware interrupt is pressing a keyboard key. This sends a signal to the processor that it has received user input to consider, even if the program is written in a way that pressing a key will do nothing. Hardware interrupts like that are synchronous, meaning they can occur in the midst of instruction execution. Initiating a hardware interrupt is called an interrupt request.

  • Software interrupts

Software interrupts are originated by an exceptional condition in the processor itself (known as a trap or exception) or a certain instruction fed into it that triggers an interrupt when executed. The former is frequently used by programmers to handle errors and and special events within their program that could be triggered during its execution. These kinds of interrupts work much like function calls; they point to a new set of instructions to carry out before normal activity can be resumed. A common example use of such an interrupt is a request for service from a device driver or other low-level system software device.

Circuit switching and Packet switching

Cite two examples of a circuit switch and packet switch environment. Base one example on a circuit switch and the other on a packet switch. Describe the trade-off between the two technologies and the reason why packet switching is more appropriate for the Internet.

Web Design Class

Some multimedia can be difficult to view on a mobile device due to screen size or bandwidth limitations. Find two articles that discuss considerations and new developments that will enable multimedia on a site to be viewed effectively on a mobile device. What advice would you give a site designer considering what multimedia elem

Preemptive Priority Queuing

In the enclosed figure, the sequence of departed packet is: 1, 3, 2, 4, and 5. What will be the sequence if preemptive priority queuing is used instead?

For this question, describe the concept of a signal, and indicate how the parent application can be configured to act upon the SIG_CHILD signal from each child as they terminate to avoid the zombie issue.

When a child process is fork()ed, a parent may wait for the successful completion of the child via the wait() service (or one of its variants) so that the return result of that application can be read from the process descriptor block. If the parent does not perform a wait() operation on the child process after it terminates

Instance scenarios use case and base use case

Please see attached for more detail and correct the base use case. --- Write brief description of instance scenarios Parent Use case name: Order book - instance name - Environmental conditions and assumptions - Inputs - Instance flow description

Creating Case Diagrams,

8:00: Alfred requests that Calvin promise to weld ten bodies for him that day. Calvin agrees to do so. ? 8:30: Alfred requests that Calvin accept the first body, Calvin agrees, and the first body arrives. Calvin starts welding it and promises Alfred to notify him when it is ready for the next body. ? 8:45: Brenda reques