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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:25:59+00:00 2026-05-13T19:25:59+00:00

This is an interview question. How do you implement a read/write mutex? There will

  • 0

This is an interview question. How do you implement a read/write mutex? There will be multiple threads reading and writing to a resource. I’m not sure how to go about it. If there’s any information needed, please let me know.

Update: I’m not sure if my statement above is valid/understandable. But what I really want to know is how do you implement multiple read and multiple writes on a single object in terms of mutex and other synchronization objects needed?

  • 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-13T19:26:00+00:00Added an answer on May 13, 2026 at 7:26 pm

    Check out Dekker’s algorithm.

    Dekker’s algorithm is the first known
    correct solution to the mutual
    exclusion problem in concurrent
    programming. The solution is
    attributed to Dutch mathematician Th.
    J. Dekker by Edsger W. Dijkstra in his
    manuscript on cooperating sequential
    processes. It allows two threads to
    share a single-use resource without
    conflict, using only shared memory for
    communication.

    Note that Dekker’s algorithm uses a spinlock (not a busy waiting) technique.
    (Th. J. Dekker’s solution, mentioned by E. W. Dijkstra in his EWD1303 paper)
    alt text

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

Sidebar

Related Questions

This is an open ended interview question. I am not able to get a
Just finished reading this blog post: http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/ In it, the author argues the case
In an interview this is the question that is asked: You have to write
This is an interview question. There are some random numbers given (let's say in
This is an interview question (phone screen): write a function (in Java) to find
This is an interview question I saw online and I am not sure I
I was asked this as interview question. Couldn't answer. Write a C program to
How to implement singleton without using static/global variable? Possible? This is an interview question...
I was practicing this question for an Interview . Best data structure that will
This is an interview question I faced recently. Given an array of 1 and

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.