-----Original Message-----
From: Christopher K. St. John <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 30 January 2001 15:25
Subject: Re: What are all Diff bet GreenThreads and Native Threads

>SNIP>

>
> <URL:http://www.javaworld.com/javaworld/jw-09-1998/jw-09-threads.html>
>
I read the above article and was interested by the section on Atomic
operations, and in particular the statement that "In particular, assignment
to variables of any type except long or double is atomic. You don't have to
worry about a thread preempting a method in the middle of the assignment.".
As a relative newbie to Java and Servlets, this seems to contradict all the
books that I've read which teach that any change to an instance variable
should be synchronised. Am I missing something here?

Regards
Roger Varley


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to