Showing posts with label OS Question Bank. Show all posts
Showing posts with label OS Question Bank. Show all posts

Saturday, May 16, 2020

Operating Systems Question Bank with Answers 20

Describe the differences among short-term, medium-term, and long-term scheduling.


Question:
Describe the differences among short-term, medium-term, and long-term scheduling.

Answer:
Short-term (CPU scheduler): selects a process from those that are in memory and ready to execute, and allocates the CPU to it.
Medium-term (memory manager): selects processes from the ready or blocked queue and removes them from memory, then reinstates them later to continue running. It is used especially with time-sharing systems as an intermediate scheduling level.
Long-term (job scheduler): determines which jobs are brought into the system for processing. It is responsible for controlling the degree of multi-processing.


******************
Related Questions:


  • Describe the differences among short-term, medium-term, and long-term scheduling.

Operating Systems Question Bank with Answers 21

What are the major activities of an operating system in regard to process management?


Question:
What are the major activities of an operating system in regard to process management?

Answer:
  • The creation and deletion of both user and system processes.
  • The suspension and resumption of processes
  • The provision of mechanisms for process synchronization
  • The provision of mechanisms for process communication
  • The provision of mechanisms for deadlock handling


******************
Related Questions:


  • What are the major activities of an operating system in regard to process management?

Operating Systems Question Bank with Answers 12

Distinguish between traditional interrupt-based I/O and DMA-based I/O.



Question:
Distinguish between traditional interrupt-based I/O and DMA-based I/O.

Answer:
Traditional Interrupt-based I/O:
  • Device interrupts the CPU when it needs attention
  • CPU is required to perform the I/O operation
  • CPU stops processing other jobs while servicing the interrupt
DMA-based I/O:
  • CPU is required to initialize memory, registers, counters
  • DMA controller (not CPU) handles I/O operations
  • Interrupt generated each time an entire block is transferred

******************
Related Questions:


Featured Content

Multiple choice questions in Natural Language Processing Home

MCQ in Natural Language Processing, Quiz questions with answers in NLP, Top interview questions in NLP with answers Multiple Choice Que...

All time most popular contents

data recovery