Concurrency

"Harsh Daharwal" <[email protected]> Mon, 9 Sep 2002 11:00:40 -0500 (CDT)
Newsgroups gmane.network.beep.beepcore.java.general
Message-ID <[email protected]>
I have a 'Profile' (implementing MessageListener) that can be used
in multiple 'Session's. Since there is a thread per 'Session', I'm
assuming same 'Profile' object will be used by multiple session
threads. So the responsibility of thread-safety falls on profile
author. Right?

Is there a way to have a separate instance of profile per
session/thread. If not, could somebody educate me on it's pros/cons?

Thanks,
Harsh




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390