I know this is not a strong question but I have to clear my mind on this concept.
I have defined myBlock as follows.
myBlock
void(^myBlock)(v
When using dispatch_sync on a serial queue (like the main queue) the current thread has to wait until the dispatched code is executed.
dispatch_sync
A dead lock occurs when a block is dispatched synchronously on from a serial queue to the same queue.