Original:
for (i = 0; i < count; i++) {
printf("%u\n",i);
}
Replacement:
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_apply(count, queue, ^(<span style="color:#ff0000;">size_t i</span>) {<span style="white-space:pre"> </span>// 这个参数固定, 迭代次序
printf("%u\n",i);
});