objective c - blocks and threads -


i want know if blocks in c / cocoa run on seperate thread main thread. useful executing computationally expensive code while leaving ui responsive?

blocks snippets of code bundled callable object. how run entirely code calls it.

running blocks on separate thread not possible, precisely reason blocks concept introduced. exists support grand central dispatch, hides lot of complexity of concurrent programming behind task-oriented model.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -