answersLogoWhite

0

What is volatile thread?

Updated: 8/16/2019
User Avatar

Wiki User

12y ago

Best Answer

Threads are not volatile. The volatile is a keyword that is used while having multiple threads in a Java Program.

This keyword is used when multiple threads access a particular variable but still it is not mandatory to synchronize or prevent access to that variable.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is volatile thread?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is volatile and why are using in java?

volatile variable is mainly used in multithreading environment. so let me explain it from that context.In a multithreading environment,for a variable which is not marked as volatile will be stored in local cache memory for each thread. Meaning each thread will have a local copy of the variable and they dont know about what value this variable is having in another thread. If a variable is marked volatile, then the updations to this variable will happen in the main memory and not in local cache


Is a Ram a volatile?

RAM is a volatile Memory. But ROM is not volatile.


What is a volatile and non volatile solute?

volatile will evaporate


Is DRAM volatile or non volatile?

DRAM is volatile.


What is volatile and non volatile soluts?

volatile will evaporate


IS FLASH NON VOLATILE OR NON VOLATILE?

Non-volatile


Is a Dram a volatile or non volatile?

DRAM is a volatile memory


Is dram a volatile or non volatile?

DRAM is a volatile memory


What do you call a substance that evaporates easily?

Volatile


Is Rom is volatile or non volatile?

ROM is non-volatile memory.


Uranium is volatile or non volatile?

Uranium is a non-volatile solid metal.


What is the correct use of volatile in java?

It is used to alert the compiler that the value of a variable may be modified by more than one thread. As a result, the Java Virtual Machine is not allowed to do certain optimizations, which are problematic in such cases.