TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:154] RMI give you multi-threading?



Quoting Jon Schewe (jpschewe@eggplant.mtu.net):
> I would tend to agree with that, although some deep reading on the Java
> developer connection would probably prove useful here.  I seem to remember
> having real problems with my last RMI project because of this.  I ended up
> having to sychronize a few more methods so that I could guarentee single
> threadedness.  You could synchronize the calculatePI() method to keep A from
> happening if you would like.

Actually, I am trying to do the opposite. I want the remote object to accept
and process request as simultaneously.

I am working on more detailed code to test this, but I have consistent
behaviour that RMI does NOT give multi-threaded behavior.

I'll post the results here after I gather the data.
-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9