• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI - Thread Assignment  RSS feed

 
Jacob George
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In RMI, can I do manipulations assuming that clients will have unique threads to handle them. ie. 10 clients will have 10 threads to manage them. Also, will the Threads be pooled among requests? ie. If I store information that Thread-1 is servicing ServerObjA, Thread-2 is servicing ServerObjB, will there be a situation that Thread-1 services ServerObjB and Thread-2 services ServerObjA.
Hope I didn't confuse u.
regards Jacob
[ August 27, 2002: Message edited by: Jacob George ]
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jacob -
You can't assume this behavior. The server-side program must set it up.
It sounds like you're asking if a thread will automatically 'respect' some other thread's use of another object in the runtime. I'm not aware of any multi-threaded with a black-box locking scheme for objects, and Java certainly doesn't have one either; it must be implemented by guarding data through synchronized method calls.
Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!