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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:32:31+00:00 2026-06-09T03:32:31+00:00

Today I was reading about synchronization. I am a bit confused after reading that

  • 0

Today I was reading about synchronization. I am a bit confused after reading that the Peterson solution for critical-section problem is a software-based solution.
Now my question is: what does it mean “software-based solution” ?

  • 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-09T03:32:32+00:00Added an answer on June 9, 2026 at 3:32 am

    To solve problem of critical section and enforce mutual exclusion there are several approaches :

    First is software based solutions. This solutions have based on algorithms like Peterson algorithm, Dekker’s algorithm and Lamport’s bakery algorithm ( for more than one process ) to protect the critical section. these solution only assume elementary mutual exclusion at memory access level. Beyond this no support in the hardware, OS or programming language is assumed.
    The main problem software approches is their high process overhead and the risk of logical error ( based on OS internals by Stallings )

    Beside software solutions, we also have hardware solutions like Interrupt disabling, Compare&Swap instruction and Exchange instruction. These solution employ busy waiting and there’s possibility of starvation and deadlock .

    Another paradigm to enforce mutual exclusion is to use Semaphores and Monitors which are mechanism implemented by OS and programming languages.

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

Sidebar

Related Questions

Today i was reading about pure function, got confused with its use: A function
I was reading today about OOCSS which says by using that approach have 2
I started reading about underscore.js today, it is a library for javascript that adds
I was reading today about researchers discovering that NVidia's Phys-X libraries use x87 FP
I always read about the horrible thing that goto is. But today, reading about
Today, I was reading about structures in Let Us C (on Goodreads ). I
I just began reading more about Markov Chain Generators today, and am really intrigued
While reading proggit today, I came upon this comment in a post about how
I was reading Joel On Software today and ran across this quote : Without
I've been reading up today on database synchronization in Magento. One thing I am

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.