Connecting Tech Pros Worldwide Forums | Help | Site Map

Critical Section in a Webservice?

Harry Whitehouse
Guest
 
Posts: n/a
#1: May 19 '06
Hi!

I've been migrating some legacy ISAPI appliations to .NET Webservice. In
one, I call a third party routine which is not thread safe. In the ISAPI
world, I put a critical section around the call to avoid problems.

Is there a comparable strategy in Webservices?

TIA

Harry



Deepak Shenoy
Guest
 
Posts: n/a
#2: May 19 '06

re: Critical Section in a Webservice?


Harry Whitehouse wrote:
[color=blue]
> Hi!
>
> I've been migrating some legacy ISAPI appliations to .NET Webservice.
> In one, I call a third party routine which is not thread safe. In
> the ISAPI world, I put a critical section around the call to avoid
> problems.
>
> Is there a comparable strategy in Webservices?[/color]

You could use a Critical Section in .NET as well (see
System.Threading.Monitor)

--
Deepak Shenoy
http://shenoyatwork.blogspot.com
Josh Twist
Guest
 
Posts: n/a
#3: May 19 '06

re: Critical Section in a Webservice?


We talked about this before here:

http://groups.google.com/group/micro...2c77b1091454e1

Note that a lock (monitor) is local to the appdomain (of which there
can be several within a process - you might even have multiple
processes too), so you should consider whether you need to use a mutex
to synchronise access for the whole box.

Josh

Harry Whitehouse
Guest
 
Posts: n/a
#4: May 20 '06

re: Critical Section in a Webservice?


Deepak and Josh --

Thanks so much for the pointers!

Best

Harry


Closed Thread