草庐IT

BACKGROUN

全部标签

iOS GCD : DISPATCH_QUEUE_PRIORITY_BACKGROUND, 文档中的 "disk I/O is throttled"是什么意思?

正如文档所说:DISPATCH_QUEUE_PRIORITY_BACKGROUNDItemsdispatchedtothequeuewillrunatbackgroundpriority,i.e.thequeuewillbescheduledforexecutionafterallhigherpriorityqueueshavebeenscheduledandthesystemwillrunitemsonthisqueueonathreadwithbackgroundstatusaspersetpriority(2)(i.e.diskI/Oisthrottledandthethread

iOS GCD : Difference between any global queue and the one with background priority (DISPATCH_QUEUE_PRIORITY_BACKGROUND)?

我正在阅读ConcurrencyProgrammingGuide事情让我感到困惑。我看到很多代码为任何后台任务调用以下内容:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0);现在我所说的“背景”是通俗的意思:在主(UI)线程以外的任何地方执行的东西所以按照文档,上面的语句返回任何具有不同优先级的非主线程队列。我的问题是-为什么DISPATCH_QUEUE_PRIORITY_BACKGROUND存在?最近我还看到许多使用DISPATCH_QUEUE_PRIORITY_BACKGROUND的异步任务专门执行后台任务。队