Operating System Interview Question and Answers

41. What is context switching?
  Transferring the control from one process to other process requires saving the state of the old process and loading the saved state for new process. This task is known as context switching.
42. What is relative path and absolute path?
  • Absolute path-- Exact path from root directory.
  • Relative path-- Relative to the current path.
43. What are the disadvantages of context switching?
  Time taken for switching from one process to other is pure over head. Because the system does no useful work while switching. So one of the solutions is to go for threading when ever possible.
44. What is the state of the processor, when a process is waiting for some event to occur?
  Waiting state
45. What is the difference between Primary storage and secondary storage?
  • Main memory - only large storage media that the CPU can access directly.
  • Secondary storage - extension of main memory that provides large nonvolatile storage capacity.
123456789101112 Page 9 of 12