Sample 0 [from 116 instances]

Centrality↓:72.92640842321914  Popularity↓:0.0  specifity↑:0.0
Class290.testDuringFailover()#4{
    t.join();
}

Path:D:\JavaApiSearchResult\Thread.join\Class290.java


Sample 1 [from 104 instances]

Centrality↓:101.4822887533458  Popularity↓:2.0  specifity↑:2.2603294069810542E-6
Class540.testSetupUncaughtExceptionHandler()#0{
        Thread t = new Thread(new Runnable() {@Override public void run() {
            throw new RuntimeException();
        }});
        t.start();
        t.join();
}

Path:D:\JavaApiSearchResult\Thread.join\Class540.java


Sample 2 [from 27 instances]

Centrality↓:24.799950510872936  Popularity↓:0.9999999999981205  specifity↑:0.0
Class680.waitInitThreads(){
    for (Thread t:initRunners
      t.join();
}

Path:D:\JavaApiSearchResult\Thread.join\Class680.java


Sample 3 [from 15 instances]

Centrality↓:13.981673815549833  Popularity↓:4.999978766434802  specifity↑:0.0
Class460.runTest(Allocator allocator)#0{
        for (int i = 0; i < THREAD_COUNT; i++) {
            threads[inew MallocPerfTest(allocator);
        }
        for (Thread thread : threads) {
            thread.start();
        }
        for (Thread thread : threads) {
            thread.join();
        }
}

Path:D:\JavaApiSearchResult\Thread.join\Class460.java


Sample 4 [from 13 instances]

Centrality↓:11.46549803854389  Popularity↓:0.999997739670593  specifity↑:0.0
Class250.join(long timeout){
            if (t != null) {
                t.join(timeout);
            }
}

Path:D:\JavaApiSearchResult\Thread.join\Class250.java


Sample 5 [from 9 instances]

Centrality↓:7.601703453057089  Popularity↓:0.9996645373720975  specifity↑:0.0
Class30.testPark3()#2{
        t.interrupt();
        t.join();
}

Path:D:\JavaApiSearchResult\Thread.join\Class30.java


Sample 6 [from 5 instances]

Centrality↓:3.9858257964709156  Popularity↓:1.986524106001829  specifity↑:0.0
Class430.joinThreads(List<Thread> threads)#0{
    for (Thread t : threads) {
      try {
        t.interrupt();
        t.join();
      catch (InterruptedException e) {
        LOG.error("Interrupttion received");
      }
    }
}

Path:D:\JavaApiSearchResult\Thread.join\Class430.java


Sample 7 [from 5 instances]

Centrality↓:3.9699889097588477  Popularity↓:1.9749464141121802  specifity↑:0.0
Class20.quietlyJoinThread(final Thread thread)#0{
        if (thread != null) {
            try {
                // interrupt the thread in case it is stuck waiting for output that will never come
                thread.interrupt();
                thread.join();
            catch (InterruptedException ignored) {
                Thread.currentThread().interrupt();
            }
        }
}

Path:D:\JavaApiSearchResult\Thread.join\Class20.java


Sample 8 [from 5 instances]

Centrality↓:3.9721321993076115  Popularity↓:0.0  specifity↑:0.4060058497098381
Class470.waitThreadStopped(Thread thread){
        if (thread != null) {
            while (thread.isAlive()) {
                try {
                    thread.join(WAIT_TO_DIE);
                catch (InterruptedException e) {
                }
            }
        }
}

Path:D:\JavaApiSearchResult\Thread.join\Class470.java