Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:06:39+00:00 2026-06-05T17:06:39+00:00

Is context switch a O(1) process or the context switch quantum is dependent on

  • 0

Is context switch a O(1) process or the context switch quantum is dependent on various local factors that can affect the time taken for it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:06:41+00:00Added an answer on June 5, 2026 at 5:06 pm

    No, for many different reasons. The main one being that switching context between two threads of a same process, and switching context between two threads of different process imply an address-space change. Changing the address-space is always a costly operation for the caches and memory. On x86 you will need to reload the Page Directory, on PowperPC you will need to invalidate and reload the TLB, …

    Changing address-space is not mandatory when going from a thread to the kernel. Just to remaind, I think Linux has always the kernel address-space loaded (using the PAE facility and having an entry of the 4-entry PDBR locked with the kernel address-space, starting at the AS higher halves, at 0xc0000000).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can we write a c program to find out time spent in context switch
Kernel threads do context switch at kernel level instead of process level. I am
Why can't a context switch happen when an interrupt handler is executing ? More
My problem is how to switch from context menu to correct activity. I have
Context: I need to develop a monitoring server that monitors some of our applications
Context In our application, we snapshot data from a database using a query that
Assume: 1) Multi-cpu environment 2) Process that gets interrupted, is the same process that
If a process causes a lot of context switches, will the CPU cycles used
I just realized that after learning a lot about various scheduling algorithms, how a
Full context: I'm trying to process multiple files using a grails Application. The code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.