Languages-Assembly Language [3i Infotech Placement]: Sample Questions 12 - 13 of 51

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 12

Assembly Language
Edit

Describe in Detail

Essay▾

What is an interrupt?

Explanation

Different Parts of Interrupts

Interrupts are the signals generated by the external devices to request the microprocessor to perform a task.

Classification of Interrupts

  • Vector interrupt:
    • The interrupt address is known to the processor.
    • RST7.5, RST6.5, RST5.5, TRAP.
  • Non-vector interrupt:
    • The interrupt address is known to the process so the interrupt address needs to send externally the device to perform interrupts.
    • Example: INTR.
  • Mask able interrupt:
    • We can disable the interrupt by writing some instructions into the program.
    • Example: RST7.5, RST6.5, RST5.5.
  • Non-mask able interrupt:
    • We cannot disable the interrupt by writing some instructions into the program.
    • Example: TRAP.
  • Software Interrupt:
    • The programmer has to add the instructions into the program to execute the interrupt.
    • Example: RST0, RST, RST2, RST3, RST4, RST5, RST6 and RST7.
  • Hardware Interrupt:
    • Interrupt pins in 8085 used as hardware interrupts. TRP, RST7.5, RST6.5, RST5.5, INTA.

Question 13

Assembly Language

Question

MCQ▾

Memory Management in Operating Systems is done by

Choices

Choice (4)

a.

Memory Management Unit

b.

Kernel

c.

Memory management software of the Operating System

d.

None of the above

Answer

c.

Explanation

  • Memory management in operating systems is done by memory management part of the Operating System.
  • This part also moves processes back and forth between main memory and disk.
  • Keeps track of each and every memory location- allocated or free.
  • There are two task of memory management:
  1. When the program requests a block of memory, a part of the memory manager called the allocator assigns that block to the program
  2. When a program no longer needs previously allocated memory block- it is made available for assignment
Two Task of Memory Management

Developed by: