Comment on Tutorial - Transient vs Volatile modifiers in Java By Reema sen



Comment Added by : Jeremy

Comment Added at : 2010-01-13 23:02:11

Comment on Tutorial : Transient vs Volatile modifiers in Java By Reema sen
You should consider using different threads that are not instantiated from the same class, but different classes. The volatile keyword does not work. The only workaround is to use another moitor class. I will try to sync and see if thqat will help.

View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Thank you for this useful script! It works very we
View Tutorial          By: Giuseppe at 2010-12-09 05:35:43

2. i found this tutorial very useful... i need to kno
View Tutorial          By: Anonymous at 2009-04-14 21:09:20

3. Thanks For This Explanatory Tutorial .
View Tutorial          By: Pralay at 2013-06-15 03:50:26

4. Very Nice Example...!!thanks
View Tutorial          By: Shafique khan at 2013-01-22 18:58:22

5. Thanks a lot Ramlak! This is still very useful af
View Tutorial          By: Jacky at 2009-08-08 23:49:12

6. Thanks a lot. It solved my problem in a second.
View Tutorial          By: Suddy at 2010-03-25 14:56:10

7. Hello,

A volatile variable does not

View Tutorial          By: aayush at 2009-11-16 07:38:23

8. Does not work.
View Tutorial          By: Hallo at 2012-10-25 09:50:05

9. site is very good explanation is very clear throug
View Tutorial          By: sridevi at 2013-03-20 15:26:29

10. semicolon(*;) is missed in first line..con .close(
View Tutorial          By: Reddymalla Babu Sircilla at 2013-02-22 09:01:29