Re: basic thread issue
From: Michael Borgwardt (brazil_at_brazils-animeland.de)
Date: 01/23/04
- Next message: Joe: "Re: choices regarding where to place code - in the database or middle tier"
- Previous message: Michael Borgwardt: "Re: Java application with web interaction"
- In reply to: jim: "basic thread issue"
- Next in thread: Matt Humphrey: "Re: basic thread issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jan 2004 18:16:58 +0100
jim wrote:
> Do threads make contention to method varaibles? I remember threads can make
> contention to instance variables. In order to protect instance variable
> integrity, I can use synchronized as a method modifier or use synchronized
> block inside method body. For a method, each thread has a different
> allocated memory space. Is this right?
local variables live on the stack, and each thread has its own stack, yes.
- Next message: Joe: "Re: choices regarding where to place code - in the database or middle tier"
- Previous message: Michael Borgwardt: "Re: Java application with web interaction"
- In reply to: jim: "basic thread issue"
- Next in thread: Matt Humphrey: "Re: basic thread issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|