Concurrent Programming in Mac OS X and iOS