Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6134225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:19:41+00:00 2026-05-23T17:19:41+00:00

Is there a join()-like method for threads that have been executed through the ThreadPoolExecutor?

  • 0

Is there a join()-like method for threads that have been executed through the ThreadPoolExecutor?

If I submit a few Callables to the executor instead and use the get() method on the Futures that they return, will I get similar behavior to a Thread.join()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:19:42+00:00Added an answer on May 23, 2026 at 5:19 pm

    They are similar in the sense they both Thread#join() and Future#get() will block until the thread/cllable is finished. In the Thread#join() case, the call returns when the thread dies. No result is returned. In the Future#get() case, it will return when the callable is finished executing its task, but the executing thread will not die (it’s usually part of a thread pool, so it will make itself available back to the pool).

    If these tasks that you submit to the ExecuterService are mission-critical, it is good practice to add a shutdown hook to your application that calls threadPool.shutdown() to allow for a graceful completion of all running threads, and waits for threadPool.isTerminated() to become true, or waits for threadPool.awaitTermination(max time before force shutdown) to return.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a method that looks like this: protected void OnBarcodeScan(BarcodeScannerEventArgs e) { //
Is there a clean way of joining threads in Objective C much like Thread.join
Is there a quick way to join paths like the Join-Path function in Powershell?
Are there any good professional associations for IT Managers that I could join and
It looks like #temptables created using dynamic SQL via the EXECUTE string method have
I have a varchar field that contains a string like 10,11,12,13. How can I
is there any method in c# thats equivalent to the javascript join() .. var
I have a named_scope which does a join. I have included the named_scope method
I have an extension method defined like so: public static TSource MaxBy<TSource, TResult>(this IEnumerable<TSource>
I have an invite friends mechanism with Facebook's FB.ui({method: 'apprequests', message: 'Come join me...'})

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.