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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:42:11+00:00 2026-05-19T00:42:11+00:00

Use of volatile only makes sense in multiprocessor systems. is this wrong? i’m trying

  • 0

Use of volatile only makes sense in multiprocessor systems. is this wrong?

i’m trying to learn about thread programming, so if you know any good articles/pdfs … i like stuff that mentions a bit about how the operating system works as well not just the language’s syntax.

  • 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-19T00:42:11+00:00Added an answer on May 19, 2026 at 12:42 am

    volatile is used to ensure all thread see the same copy of the data. If there is only one thread reading/writing to a field, it doesn’t need to be volatile. It will work just fine, just be a bit slower.

    In Java you don’t have much visibility as to the processor architecture, generally you talk in terms of threads and multi-threading.

    I suggest Java Concurrency in Practice, it good whatever your level of knowledge, http://www.javaconcurrencyinpractice.com/

    The whole point of using Java is you don’t need to know most of the details of how threads work etc. If you learn lots of stuff you don’t use you are likely to forget it. 😉

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

Sidebar

Related Questions

I have read that you should use volatile when a thread accesses a variable
File systems are volatile. This means that you can't trust the result of one
From book Java Concurrency in Practice page 26: You can use volatile variables only
use this website a lot but first time posting. My program creates a number
I occasionally use a volatile instance variable in cases where I have two threads
I have read When to use 'volatile' in Java? but I'm still confused. How
I think i have a pretty good idea about the volatile keyword in java,
I'm trying to use a function with PostgreSQL to save some data. Here is
I've looked at the other volatile vs. Atomicxxxx questions in SO (including this one
Can someone explain what the Volatile keyword use used for...for someone coming from a

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.