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 6904037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:59:59+00:00 2026-05-27T07:59:59+00:00

I am trying to find documentation indicating if java.util.concurrent.Future is/is not threadsafe. Eg can

  • 0

I am trying to find documentation indicating if java.util.concurrent.Future is/is not threadsafe. Eg can I safely give the same instance of Future to multiple threads, which will all call Future.get(…)?

I have tested code using Future in this manner and it seems to work fine but I’d be much happier if I could find documented expectation that future is safe for concurrent access in this manner.

Thanks.

  • 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-27T08:00:00+00:00Added an answer on May 27, 2026 at 8:00 am

    Given that Future is intended to be used by several threads (at least the one which submits, and the one which sets its result), and given that the documentation specifies that there is a happen-before relationship between the asynchronous computation and the actions occurring after the get call, I would assume that the implementations are thread-safe (at least the standard implementations).

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

Sidebar

Related Questions

I'm trying to find documentation on how I can override a property name in
I'm not quite sure how this works yet... trying to find documentation. In my
I'm learning Squeryl and trying to understand the 'using' syntax but can't find documentation
What I'm trying to do is relatively simple but I can't find documentation. Let's
I am trying to find an online documentation for SQLite2. The project I have
Trying to find an XML file I can use in lieu of a look-up
Trying to find examples of when decorators might be really beneficial, and when not
I am trying to find documentation, tutorials, examples on how to generate sounds. I
I'm trying to find documentation on how one would go about creating a custom
I'm trying to find documentation on RDLC. Specifically I'm looking for the different Actions

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.