美文网首页
GCD 线程

GCD 线程

作者: 孟维学 | 来源:发表于2016-07-22 11:14 被阅读5次

    dispatch_queue_tqueue =dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0);

    dispatch_group_tgroup =dispatch_group_create();

    dispatch_group_async(group, queue, ^{

    [NSThreadsleepForTimeInterval:0];

    });

    dispatch_group_async(group, queue, ^{

    [NSThreadsleepForTimeInterval:.1];

    });

    dispatch_group_async(group, queue, ^{

    [NSThreadsleepForTimeInterval:.3];

    });

    相关文章

      网友评论

          本文标题:GCD 线程

          本文链接:https://www.haomeiwen.com/subject/falijttx.html