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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:46:58+00:00 2026-05-21T07:46:58+00:00

I am studying about operating systems(Silberscatz, Galvin et al). My programming experiences are limited

  • 0

I am studying about operating systems(Silberscatz, Galvin et al). My programming experiences are limited to occasional coding of exercise problems given in a programing text or an algorithm text. In other words I do not have a proper application programming or system programming experience. I think my below question is a result of a lack of experience of the above and hence a lack of context.

I am specifically studying IPC mechanisms. While reading about shared memory(SM) I couldn’t imagine a real life scenario where processes communicate using SM. An inspection of processes attached to the same SM segment on my linux(ubuntu) machine(using ‘ipcs’ in a small shell script) is uploaded here

Most of the sharing by applications seem to be with the X deamon. From what I know , X is the process responsible for giving me my GUI. I infered that these applications(mostly applets which stay on my taskbar) share data with X about what needs to change in their appearances and displayed values. Is this a reasonable inference??

If so,
my question is, what is the difference between my applications communicating with ‘X’ via shared memory segments versus my applications invoking certain API’s provided by ‘X’ and communicate to ‘X’ about the need to refresh their appearances?? BY difference I mean, why isn’t the later approach used?

Isn’t that how user processes and the kernel communicate? Application invokes a system call when it wants to, say read a file, communicating the name of the file and other related info via arguments of the system call?

Also could you provide me with examples of routinely used applications which make use of shared memory and message-passing for communication?

EDIT
I have made the question more clearer. I have formatted the edited part to be bold

  • 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-21T07:46:59+00:00Added an answer on May 21, 2026 at 7:46 am

    The difference is that with an API you as a developer might not have access to what is happening inside these functions, so memory would not necessarily be shared.

    Shared Memory is mostly a specific region of memory to which both apps can write and read from. This off course requires that access to that memory is synchronized so things don’t get corrupted.

    Using somebody’s API does not mean you are sharing memory with them, that process will just do what you asked and perhaps return the result of that operation to you, however that doesn’t necessarily go via shared memory. Although it could, it depends, as always.

    The preference for one over another I’d say depends on the specifications of the particular application and what it is doing and what it needs to share. I can imagine that a big dataset of some kind or another would be shared by shared memory, but passing a file name to another app might only need an API call. However largely dependent on requirements I’d say.

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

Sidebar

Related Questions

I was studying the Kernel Architecture and its programming to get the idea about
these days I have been studying about NP problems, computational complexity and theory. I
I just started studying programming about 6 months ago and I have really been
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,
I am a student studying software development, and I feel programming, in general, is
I am studying the content of Programming Ruby- The Pragmatic Programmer's Guide but the
While studying about JMX, I have seen one of the important feature of it
I've been studying about k-means clustering , and one thing that's not clear is
I am studying for a final and have a few questions about RMI and
I am studying about regular expression and struck with the lookaround concept and with

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.