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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:38:58+00:00 2026-06-14T14:38:58+00:00

I am reading Linux Kernel Development and get confused by the differences between mutex

  • 0

I am reading Linux Kernel Development and get confused by the differences between mutex and semaphore.

The author says:

A mutex cannot be acquired by an interrupt handler or bottom half

I know a mutex may lead to sleep, and interrupt handler is not running in any specific process context so mutex or semaphore is not allowed. But bottom half can be implemented with work queues and it can sleep.

So, why a mutex can’t be acquired in bottom half? Is simplicity and efficiency concerned here or something else?

  • 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-14T14:39:00+00:00Added an answer on June 14, 2026 at 2:39 pm

    The main motive for creating a mutex is simplicity and efficiency. As synchronization in bottom halves can be complicated, it is suggested that mutex be avoided in bottom halves. The design of bottom halves is not suitable for mutex. Eg. Mutex should be locked/unlocked in the same context – this would be hard to follow in case of bottom halves.

    In theory you can decide to implement the whole interrupt handling different in which use of mutex in justified. Like the “threaded” interrupt handlers. http://lwn.net/Articles/380931/

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

Sidebar

Related Questions

I am currently reading 'Linux Kernel Development' by Robert Love and I do not
I was reading about linux kernel development and I just read some text that
Right now I'm reading the book "Linux Kernel Development 3d Edition" by Robert Love.
Upon reading Linux Kernel Development I saw next statetement: Traditionally, upon fork() , all
I am new to Linux Kernel. I am reading this informative article that says
After reading up on this answer and Linux Kernel Development by Robert Love and,
Okay, I'm reading about Linux kernel development and there are some code snippets using
I've been reading through the Linux kernel (specifically, 2.6.11). I came across the following
I'm learning the Linux kernel and reading the book The Linux Kernel . Can
I'm reading Understanding Linux Kernel. This is the snippet that explains how Linux uses

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.