Which one of the following methods requires saving the value of the CPU registers from the thread being switched out and restoring the new thread being scheduled?

This question was previously asked in
UPSC ESE (Prelims) Electronics and Telecommunication Engineering 19 Feb 2023 Official Paper
View all UPSC IES Papers >
  1. Context switching between kernel level threads
  2. Scheduling switching
  3. Kernel dispatcher
  4. Multilevel queue scheduling

Answer (Detailed Solution Below)

Option 1 : Context switching between kernel level threads
Free
ST 1: UPSC ESE (IES) Civil - Building Materials
6.4 K Users
20 Questions 40 Marks 24 Mins

Detailed Solution

Download Solution PDF
  • Context switching between kernel-level threads involves saving the state of the CPU registers (like program counter, stack pointer, etc.) from the currently running thread before switching to another thread.
  • This process ensures that when the original thread is scheduled back, its previous state can be stored, allowing it to continue execution from where it was interrupted.
  • This context-switching mechanism enables the operating system to efficiently manage multiple threads, allowing them to share the CPU and execute concurrently.

Here, option 1 is correct.

Latest UPSC IES Updates

Last updated on Jul 2, 2025

-> ESE Mains 2025 exam date has been released. As per the schedule, UPSC IES Mains exam 2025 will be conducted on August 10. 

-> UPSC ESE result 2025 has been released. Candidates can download the ESE prelims result PDF from here.

->  UPSC ESE admit card 2025 for the prelims exam has been released. 

-> The UPSC IES Prelims 2025 will be held on 8th June 2025.

-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.

-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.

More CPU Scheduling Questions

Get Free Access Now
Hot Links: teen patti apk download real teen patti teen patti master 2023 teen patti 51 bonus