join two threads?

Discussion in 'iOS Programming' started by Tex-Twil, Jul 21, 2012.

  1. Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #1
    Hello,
    I have an object which does two background operations that fetch some data from the net. Once both of the operations are done, I need to compare the results of the fetched data.

    The question is how can I start two background processing and wait that both of them finish? In Java, it would be the equivalent of Thread.join().


    Thanks,
    Tex
     
  2. admanimal macrumors 68040

    Joined:
    Apr 22, 2005
    #2
  3. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #3
  4. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #4

Share This Page