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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:24:42+00:00 2026-06-04T00:24:42+00:00

Few days back, in an interview one question was asked to me as, Are

  • 0

Few days back, in an interview one question was asked to me as,

Are  function callback in C and interprocess communication are same?

I was bit neutral in that question.Because I was in a dilemma. In IPC we communicate between process to process at the end if we shall see process is nothing but a function. Here one function calls other function. In function callback we use function pointer again that is one function calls other function with address.
So just wanted to know though they are not completely same, so what the difference?

  • 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-04T00:24:43+00:00Added an answer on June 4, 2026 at 12:24 am

    No, not really.

    Function callback is passing the address (or some other identifier) of a function to another function so that it can call back for some reason.

    The classic example is the C standard library qsort function. You pass in a pointer to the array (and its sizes), along with a comparison function. The qsort function then uses that comparison function (the callback) to decide which of any two elements in the list is greater so that it can arrange them in order.

    IPC, on the other hand, is a means for processes to communicate with each other, such as shared memory, pipes, semaphores and so on.

    Some IPC mechanisms may use callbacks but it’s by no means necessary. For example, sockets don’t use callbacks, they simply allow a user to call read and write.

    Similarly with shared memory, you attach to the memory blocks and simply access them much the same as “regular” memory, it’s just that the effects are felt across all processes attached to that memory.

    One that does sort of use callbacks is ONC RPC (or Sun RPC). It runs a server which awaits client calls over the network and passes them to a pre-configured client function. More detail can be found here.

    But, even then, I’d be hesitant to call it a callback since it’s really configured at compile-time. “Proper” callbacks tend to be done at run-time.

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

Sidebar

Related Questions

A few days ago I asked this question about jquery ajax function invoking action
I asked a question a few days ago and no one seems to know
A few days back I had an interview, and I was asked to write
A few days back I felt this question to be dumb and dint post
A few days back, I started using new OpenCV-Python interface, cv2 . My question
This is a follow-up question to an answer I gave a few days back
I asked a similar question a few days ago, but there's no harm in
Few days back, I posted a question about getting student marks results from database
A few days back, while writing an answer for this question here on overflow
A few days back, while the built-in server (Tomcat v5.5) in eclipse was running,

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.