Objective-C

解いてみた/ザッカーバーグの面接試験2:アクティビティ・インディケーター

ザッカーバーグの面接試験2:アクティビティ・インディケーター http://satoshi.blogs.com/life/2012/08/zack2.html こんな感じかな? #import "NetworkActivityManager.h" @implementation NetworkActivityManager + (id) sharedInstance { static Network…

GCDとpthraedのコード比較

Grand Central Dispathでで並列プログラミングする場合に、条件変数(Condition Variable)を使いたい時はどうすればいいのかみたいな話を同僚としてたので調べてみた。結論としてはpthread_cond_xxxを使えばOK。ところで私はpthreadもGCDもそんなに詳しくない…