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

  • Home
  • SEARCH
  • 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 1019581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:02:07+00:00 2026-05-16T11:02:07+00:00

There is a rule to find out, for sure, all objects that could possibly

  • 0

There is a rule to find out, for sure, all objects that could possibly have concurrent access in a Java program? My intention is use such rule, if it exists, to find out which Java classes could possibly have concurrent access and then guarantee that they are thread-safe. This rule could be very useful when inspecting a large Java project. I’ve thought to look for static methods, but I’m not sure if this is the only way an object can be accessible to multiple threads.

  • 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-16T11:02:08+00:00Added an answer on May 16, 2026 at 11:02 am

    It seems very, very unlikely that such a thing exists as a single rule. Imagine the following:

    public void maybeAccessConcurrently(Program x) {
        if(halts(x)) {
            accessConcurrentObject();
        } else {
            // don't.
        }
    }
    

    I don’t know about you, but I can’t really contrive a rule that isn’t equivalent to deciding the halting problem here, especially not by simple inspection of types or declarations. I think you may find that like other static analysis techniques, there are a set of properties that you can check within reason. The Bandera project appears to be an effort to use various model-checking techniques to verify properties of concurrent Java code. There may be other similar efforts (all of which are most likely to involve model checking, given the presence of concurrency).

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

Sidebar

Related Questions

Is there a general rule of thumb to follow when storing web application data
Is there a general rule of thumb as to how many classes, interfaces etc
Is there any guideline or rule for when the view state should be enabled
There is a conversion process that is needed when migrating Visual Studio 2005 web
There are numerous Agile software development methods. Which ones have you used in practice
I have a number of utilities that were written in the days of yore
I am trying to find out how an OS (Windows, linux) assigns numbers to
I'm running into a situation, common I'm sure, where my business rule documentation is
I've noticed that there are a couple of similar questions and answers at SO
I want to click / look at on an html element and find out

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.