2012年1月17日 星期二

一些關於GCD(Grand Central Dispatch)用法的鏈結蒐集

首先我必須說,stackoveflow真的是屬於programmer的線上遊戲,越玩會越起勁!

在問的時候會有高手給你更新更紮實的觀念,在答的時候會需要找更多資料增強自己的答案完整度。

所以無論是問或是答都可以從中學習到更多東西,這就是所謂的教學相長啊。

趁著這次研究GCD相關的問題,蒐集一些自己覺得有趣的討論串。

 

下面這篇是討論在讀取大型圖檔時,如何設計讓使用者可以隨時取消背景的下載動作。

http://stackoverflow.com/questions/7605017/interrupt-queue-or-file-write-operation-in-ios

 

用兩個queue分別做DSA跟寫入檔案。

http://stackoverflow.com/questions/4532509/grand-central-strategy-for-opening-multiple-files

 

離開view之後,讓queue停止做事。

http://stackoverflow.com/questions/6525666/prevent-multiple-dispatch-queue-create-from-being-created-in-viewdidload

 

不錯的GCD tutorial一則。

http://www.fieryrobot.com/blog/2010/06/27/a-simple-job-queue-with-grand-central-dispatch/

沒有留言:

張貼留言