Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Volatile explained
- From: Yann.Secq@xxxxxxx (Yann SECQ)
- Subject: Volatile explained
- Date: Wed, 29 Nov 2000 17:14:19 +0100
Klas Lindbäck (ERA) wrote:
> A volatile variable may not be cached locally in a thread.
> Every time the value of a volatile variable is accessed within one
> thread it is read from main memory.
> Clearly, volatile is useful only in multithreaded applications.
Yes, but it's more on multiprocessors system that this feature is
useful,
and it seems that no JVM are compliant to this definition.
--
Yann SECQ Thèse d'Informatique en préparation, SMAC, LIFL
secq@xxxxxxx Studying for a PhD in Computer Science
javafan@xxxx S.M.A, Modélisation et Programmation Orientée Agents
www.lifl.fr/~secq M.A.S & Agent Oriented Programming and Modeling
---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- References:
- Volatile explained
- From: Klas Lindbäck (ERA)
- Volatile explained
- Prev by Date: Volatile explained
- Next by Date: Fast way to update portion of Image with new bits
- Previous by thread: Volatile explained
- Next by thread: Volatile explained
- Index(es):