欢迎来到天天文库
浏览记录
ID:40057626
大小:769.86 KB
页数:88页
时间:2019-07-18
《Concurrency Programming Guide》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ConcurrencyProgrammingGuideContentsIntroduction7OrganizationofThisDocument7ANoteAboutTerminology8SeeAlso8ConcurrencyandApplicationDesign9TheMoveAwayfromThreads10DispatchQueues10DispatchSources11OperationQueues12AsynchronousDesignTechniques12DefineYourApplication
2、’sExpectedBehavior13FactorOutExecutableUnitsofWork13IdentifytheQueuesYouNeed14TipsforImprovingEfficiency14PerformanceImplications15ConcurrencyandOtherTechnologies15OpenCLandConcurrency15WhentoUseThreads16OperationQueues17AboutOperationObjects17ConcurrentVersusNo
3、n-concurrentOperations18CreatinganNSInvocationOperationObject19CreatinganNSBlockOperationObject20DefiningaCustomOperationObject21PerformingtheMainTask21RespondingtoCancellationEvents22ConfiguringOperationsforConcurrentExecution24MaintainingKVOCompliance27Customi
4、zingtheExecutionBehaviorofanOperationObject28ConfiguringInteroperationDependencies29ChanginganOperation’sExecutionPriority29ChangingtheUnderlyingThreadPriority302012-12-13
5、Copyright©2012AppleInc.AllRightsReserved.2ContentsSettingUpaCompletionBlock30TipsforImplem
6、entingOperationObjects31ManagingMemoryinOperationObjects31HandlingErrorsandExceptions32DetermininganAppropriateScopeforOperationObjects32ExecutingOperations33AddingOperationstoanOperationQueue33ExecutingOperationsManually34CancelingOperations36WaitingforOperatio
7、nstoFinish36SuspendingandResumingQueues37DispatchQueues38AboutDispatchQueues38Queue-RelatedTechnologies41ImplementingTasksUsingBlocks41CreatingandManagingDispatchQueues43GettingtheGlobalConcurrentDispatchQueues43CreatingSerialDispatchQueues44GettingCommonQueuesa
8、tRuntime45MemoryManagementforDispatchQueues45StoringCustomContextInformationwithaQueue46ProvidingaCleanUpFunctionForaQueue46AddingTaskstoaQueue47AddingaSingleTasktoaQueue48PerformingaCompletionBlockWhenaTaskIsDone49PerformingLoopIterationsConcurrently50Performin
9、gTasksontheMainThread51UsingObjective-CObjectsinYourTasks51SuspendingandResumingQueues52UsingDispatchSemaphorestoRegulatetheUseofFiniteResources52WaitingonGroupsofQue
此文档下载收益归作者所有