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 7611875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:46:15+00:00 2026-05-31T01:46:15+00:00

my question: 1)In book modern operating system , it says the threads and processes

  • 0

my question:

1)In book modern operating system, it says the threads and processes can be in kernel mode or user mode, but it does not say clearly what’s the difference between them .

2)Why the switch for the kernel-mode threads and process costs more than the switch for user-mode threads and process?

3) now, I am learning Linux,I want to know how would I create threads and processes in Kernel mode and user mode respectively IN LINUX SYSTEM?

4)In book modern operating system, it says that it is possible that process would be in user- mode, but the threads which are created in the user-mode process can be in kernel mode. How would this be possible?

  • 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-05-31T01:46:16+00:00Added an answer on May 31, 2026 at 1:46 am

    User-mode threads are scheduled in user mode by something in the process, and the process itself is the only thing handled by the kernel scheduler.

    That means your process gets a certain amount of grunt from the CPU and you have to share it amongst all your user mode threads.

    Simple case, you have two processes, one with a single thread and one with a hundred threads.

    With a simplistic kernel scheduling policy, the thread in the single-thread process gets 50% of the CPU and each thread in the hundred-thread process gets 0.5% each.

    With kernel mode threads, the kernel itself manages your threads and schedules them independently. Using the same simplistic scheduler, each thread would get just a touch under 1% of the CPU grunt (101 threads to share the 100% of CPU).

    In terms of why kernel mode switching is more expensive, it probably has to do with the fact that you need to switch to kernel mode to do it. User mode threads do all their stuff in user mode (obviously) so there’s no involving the kernel in a thread switch operation.

    Under Linux, you create threads (and processes) with the clone call, similar to fork but with much finer control over things.

    Your final point is a little obtuse. I can’t be certain but it’s probably talking about user and kernel mode in the sense that one could be executing user code and another could be doing some system call in the kernel (which requires switching to kernel or supervisor mode).

    That’s not the same as the distinction when talking about the threading support (user or kernel mode support for threading). Without having a copy of the book to hand, I couldn’t say definitively, but that’d be my best guess.

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

Sidebar

Related Questions

I'm trying to complete a practice question from a book on generics but the
I read this question and its answer in a book. But I didn't understand
I apologize for this school-book question but I've been working on this SQL query
I'm starting with Mercurial. I'm reading the mercurial book but still have a question.
I'm following this tutorial http://ruby.railstutorial.org/ruby-on-rails-tutorial-book My question is, what is the relation for user
This question was asked by Ed Burns in his book 'Riding the Crest'. I
Here's a sort of odd question. I'm in the process of writing a book
I'm working through Aaron Hillegass' book, specifically the lottery example. I had a question
I do not really know if this is scientifically proven, but I've read in
First off, it may seem that I'm asking for subjective opinions, but that's not

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.