Hi, I am programming in C and would like to use Grand Central Dispatch for parallel computing (I mostly do physics based simulations). I remember there used to be example codes provided by Apple, but can't find those now. Instead I get the plain documentation. May anyone point me to the correct resources? It will be greatly appreciated. Thanks ☺.
How to view documentation and example codes for Grand Central Dispatch for C
Hi @Sayantan96,
The documentation for Dispatch is found here: https://developer.apple.com/documentation/dispatch?language=objc
I don't know that we have any samples on this topic in C.
It might not be possible but I'd consider doing this programming in Swift. It is modern, performant and in the latest release has many of the features that C programmers have been asking for, including things like InlineArray.
I've done quite a bit of physics based programming in Swift (well solving diffeq's for engineering problems anyway) so I'm excited to hear you are too.
Good luck!