Re: About MBR SAO and threads...
From: Sunny (sunnyask_at_icebergwireless.com)
Date: 03/23/04
- Next message: Elp: "Re: About MBR SAO and threads..."
- Previous message: Orlin Popov: "Re: About MBR SAO and threads..."
- In reply to: Elp: "About MBR SAO and threads..."
- Next in thread: Allen Anderson: "Re: About MBR SAO and threads..."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Mar 2004 09:09:32 -0600
Hi Elp,
as far as I know, every method call is executed in a different thread.
So if 2 threads in the client are making 2 different calls to remoted
object, you have to make your code thread safe, as there is no remoting
at all.
Sunny
In article <uFEcBeNEEHA.684@tk2msftngp13.phx.gbl>,
rockfamily@REMOVEME.hotmail.com says...
> Hi,
>
> I'd like to have some advices on threads and .NET Remoting in order to do a
> reliable implementations of my remote objects.
>
> Here is the plot: i'm exposing a MBR object (let's call it ManagerObject) as
> a singleton. This object contains several methods, one of them returning an
> instance of a second MBR object (ClientObject, singleton as well). Imagine
> that every method of those 2 objects take several seconds to execute.
>
> What i'd like to know is: is each call to a method of either one of those
> objects executed in a single thread or does .NET Remoting uses a new thread
> for each call?
>
> In real life, here is my question:
> - if 2 clients (or 2 threads of the same client; that's the same situation)
> call 2 different methods of my ManagerObject at almost the same time, will
> those 2 methods be executed simultaneously or one after the other?
> - same question if those 2 clients call the *same* method of my
> ManagerObject at the same time.
> - what if one client calls a method of my ManagerObject and the other a
> method of my ClientObject?
>
> The problem here is quite obvious: do i need to take care of synchronisation
> problems in my implementation or can i safely assume that my object are
> going to be used in a single-threaded environment?
>
> Thanks a lot.
>
>
>
- Next message: Elp: "Re: About MBR SAO and threads..."
- Previous message: Orlin Popov: "Re: About MBR SAO and threads..."
- In reply to: Elp: "About MBR SAO and threads..."
- Next in thread: Allen Anderson: "Re: About MBR SAO and threads..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|