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

  • Home
  • SEARCH
  • 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 6785665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:09:17+00:00 2026-05-26T17:09:17+00:00

How does the kernel cope with the schedule() function being called from within an

  • 0

How does the kernel cope with the schedule() function being called from within an IRQ? Say, task1 calls schedule from IRQ0 (timer), and task2 resumes from INT 80h (I forget the name of the system call that forces a task switch). The IRQ “ACK” signal would never be sent, and IRQs would cease to be sent.

I am referring to x86 PCs only. I am researching the Linux scheduler/process system for my own small kernel I am (attempting) to write, and I can’t get my head around what I’m missing. I know I’m missing something since the fact that Slackware is running on my computer is a testament to the fact that the scheduler works 😛

  • 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-26T17:09:18+00:00Added an answer on May 26, 2026 at 5:09 pm

    The short answer is that it doesn’t. On normal Linux systems, ISR context is considered an atomic context meaning that you should not yield control to the scheduler at any point. In case some code does call schedule() from an interrupt context, you would most likely get a “BUG: scheduling while atomic” print.

    However, it is possible to re-schedule the process following the end of the interrupt handling and that’s what the time interrupt occasionally does in order to divide the CPU resource among processes. Also, some patched Linux kernels have delegated the work of ISRs to kernel threads, and in that case those special ISRs might sleep.

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

Sidebar

Related Questions

CPU Switches from User mode to Kernel Mode : What exactly does it do?
How to use linux kernel's find_module() function? The documentation says must hold module_mutex. Does
How many system calls are there totally in linux 2.6 kernel. Does the number
Say an OS/kernel is written with C++ in mind and does not do any
Questions : What does the kernel do if you stick a shell-script into the
Does anybody have experience programming for both the Intel Math Kernel Library and the
In Ruby (1.8.X) Why does Object both inherit off Kernel and include it? Wouldn't
Does Google force employees who have offers from Facebook to leave immediately?
I have questions regarding stacks and dynamic memory allocation. 1) Does kernel determine the
Where in the linux kernel does the closing of a socket's file descriptor occur?

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.