2011年12月31日
摘要: 1:原文摘自:http://disanji.net/2011/08/10/%E4%BD%BF%E7%94%A8nsoperationqueue%E7%AE%80%E5%8C%96%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%80%E5%8F%91/使用NSOperationQueue简化多线程开发来自Fgamers2011年8月10日860 次阅读 评论 (0)多线程开发是一件需要特别精心的事情,即使是对有多年开发经验的工程师来说。为了能让初级开发工程师也能使用多线程,同时还要简化复杂性。各种编程工具提供了各自的办法。对于iOS来说,建议在尽可能的情况下避免直接操作线程. 阅读全文
posted @ 2011-12-31 15:20 wtq 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1,原文摘自:https://github.com/robbiehanson/CocoaAsyncSocket/wiki/Intro_GCDAsyncSocketReading & WritingOne of the best features of the library is "queued read/write operations". What does that mean? A quick code example may explain it best:NSError *err = nil;if (![socket connectToHost:@&quo 阅读全文
posted @ 2011-12-31 11:32 wtq 阅读(6264) 评论(2) 推荐(0) 编辑