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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:01:30+00:00 2026-05-24T01:01:30+00:00

If I already hold the mmap semaphore (reading) for an mm_struct and I would

  • 0

If I already hold the mmap semaphore (reading) for an mm_struct and I would like to write some data to a member of the page struct should I up_read the semaphore and attempt to acquire a down_write on the mm_struct or should I use a seperate lock (it’s a structure member that I created, it’s a list). Also if I already hold a down_read semaphore and I call another method that down_reads the same semaphore this should not deadlock from my understanding correct?

  • 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-24T01:01:32+00:00Added an answer on May 24, 2026 at 1:01 am

    The solution I found is that down_read’s are not going to cause a deadlock. Instead I use a spinlock to maintain exclusive rights to modify the list and also change the flags of the page. This allows me to avoid issues with multiple faults on the same page and also allows me to see that if I currently hold the lock then the page fault handler can just return because I will handle that fault already.

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

Sidebar

Related Questions

Already found this page with some helpful hints. Problem is I need to debug
I already asked how HSV color pickers work, now I would like to know
I would like to write an AppleScript that would allow me to launch iTunes
I am currently looking to make my own collection, which would be just like
Some programs like ProcessExplorer are able to read strings in memory (for example, my
I already knew pointer of a struct can be cast to another pointer of
Here is piece of class which called right after i already drawn some objects
I am using Eclipse Indigo. I already have some code that is stored in
OK, I am sure some of you already know whats happening just by my
Already implemented performance boosters : - Get compatible image of GraphicsConfiguration to draw on

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.