C
Chicken McNuggets
I'm interested in asynchronous programming but am having a few problems
understanding the underlying implementation.
I assume that asynchronous programming is generally done by calling a
function (which includes a call back function pointer in its arguments)
which starts a thread and then immediately returns. Once the thread has
completed the task it then calls the call back function to return the
data to the caller.
Is this the basic idea of asynchronous programming or have I got it
completely wrong?
Thankfully threading is now on-topic in this group thanks to C11.
Thank you for any help.
understanding the underlying implementation.
I assume that asynchronous programming is generally done by calling a
function (which includes a call back function pointer in its arguments)
which starts a thread and then immediately returns. Once the thread has
completed the task it then calls the call back function to return the
data to the caller.
Is this the basic idea of asynchronous programming or have I got it
completely wrong?
Thankfully threading is now on-topic in this group thanks to C11.
Thank you for any help.