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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:48:52+00:00 2026-05-26T20:48:52+00:00

I am sharing some data across multiple processes by using shared memory; I use

  • 0

I am sharing some data across multiple processes by using shared memory; I use inter processes mutexes to achieve synchronization.

My question is the following: is it possible to use lock-free data structures AND/OR atomic operations to achieve faster synchronization without using mutexes between 2 processes?

If not do you know what is the main reason for this?

They are used only to synchronize threads of the same process. Are these concepts portable to processes as well? If they aren’t do you know any faster method to share/synchronize data across processes?

  • 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-26T20:48:52+00:00Added an answer on May 26, 2026 at 8:48 pm

    Are these concepts portable to processes as well?

    Yes, atomic operations are universal both for threads and processes, IIF the memory atomically used is shared.

    Atomic operation is specific instruction of processor itself and in knows nothing about threads or processes, it is just All-or-nothing (indivisible) complex of actions (read; compare; store) with low-level hardware implementation.

    So, you can setup shared memory between processes and put an atomic_t into it.

    lock-free

    Yes, if lock-free is implemented only with atomic. (It should)

    data structures

    You should check, that shared memory is mapped to the same address in both processes when it is used to store pointers (in data structures).

    If the memory will be mapped to different address, pointers will be broken in another process. In this case you need to use relative addresses, and do simple memory translation.

    inter processes mutexes

    And I should say that glibc>2.4 (NPTL) uses futex combined with atomic operations for non-contended lock (for Process shared mutexes = inter process mutexes). So, you already use atomic operations in shared memory.

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

Sidebar

Related Questions

I'm using R for data analysis, and I'm sharing some data with collaborators via
I've been sharing image lists across multiple forms in Delphi for years now. I
this may be a general question on sharing variables but here goes. I'm using
I'm would like some advice on the best data persistence solution to use for
I am reading Excel worksheet data using C# and Microsoft.Office.Interop. The sheet contains some
I am guessing that even reading from shared data in openmp causes some parallel
I have a question about sharing data between views, hopefully it's not too basic.
Is it possible to achieve better data transfer rate with multiple parallel TCP connections
I have a class includes.vb that holds some variables (sharing them with other pages)
I'd like to have some rails apps over different servers sharing the same session.

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.