Re: Static Methods in DAO
From: Josh Martin (josh.martin_at_gmail.com)
Date: 07/21/04
- Next message: Jacob: "Re: elapsed time of a program"
- Previous message: Manish Hatwalne: "Problems with Runtime.exec()"
- In reply to: David Hilsee: "Re: Static Methods in DAO"
- Next in thread: David Hilsee: "Re: Static Methods in DAO"
- Reply: David Hilsee: "Re: Static Methods in DAO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jul 2004 05:31:38 -0700
Thank you for the answer. Quick question - if there are shared static
methods, or a single shared object (i.e. singleton), how can multiple
threads make use of the same method simultaneously? Again, apologies
for being a bit uninformed regarding threading, but in my mind, the
only way to allow multiple threads simultaneous access to methods
would be to have more than one instance of them. Otherwise, it seems
like all threads would be vying for the same method - though it would
certainly work.
I think the answer to this question would probably clarify things for
me: Is it possible for multiple threads to execute the same line of
code in a method at the exact same time if there is one shared object
(singleton) or it is a static method? Thanks again!
- Next message: Jacob: "Re: elapsed time of a program"
- Previous message: Manish Hatwalne: "Problems with Runtime.exec()"
- In reply to: David Hilsee: "Re: Static Methods in DAO"
- Next in thread: David Hilsee: "Re: Static Methods in DAO"
- Reply: David Hilsee: "Re: Static Methods in DAO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|