並列処理(NSOperation)

Operation1とOperation2が同時に走る。
Operation2の処理が先に終わる。

■ログ
2015-04-08 22:42:34.422 NSOperation_test[11170:1223456] Finish Operation2
2015-04-08 22:42:39.427 NSOperation_test[11170:1223457] Finish Operation1

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    NSOperationQueue *queue = [[NSOperationQueue alloc] init];

    [queue addOperationWithBlock:^{
        [NSThread sleepForTimeInterval:5];
        NSLog(@"Finish Operation1");
    }];
    
    [queue addOperationWithBlock:^{
        NSLog(@"Finish Operation2");
    }];
    
}