hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    When a peripheral device needs immediate attention from the operating system, it generates a(n):
    Question

    When a peripheral device needs immediate attention from the operating system, it generates a(n):

    A.

    Spool

    B.

    Interrupt

    C.

    Page File

    D.

    Stack

    Correct option is B


    An interrupt is a signal sent by a peripheral device or a hardware component to the operating system (OS) indicating that it requires immediate attention. Interrupts are used to manage hardware efficiently by allowing the processor to temporarily pause its current execution and address the request, then return to the original task once the request is handled.
    Types of Interrupts:
    1. Hardware Interrupts: Generated by external devices like keyboards, mice, and printers.
    2. Software Interrupts: Generated by programs or the OS to perform system calls.
    3. Maskable Interrupts: Can be ignored or delayed by the processor.
    4. Non-Maskable Interrupts (NMI): Cannot be ignored and are used for critical tasks like hardware failure alerts.
    Example:
    · When a user presses a key on the keyboard, the keyboard controller generates an interrupt to notify the OS to process the keypress.

    Similar Questions

    test-prime-package

    Access ‘RRB JE Mechanical Engineering’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    354k+ students have already unlocked exclusive benefits with Test Prime!
    test-prime-package

    Access ‘RRB JE Mechanical Engineering’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    354k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow