07-26-2023, 10:59 PM
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?
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?