Multi threaded libraries on a web farm

Multi threaded libraries on a web farm

am 19.11.2007 21:38:07 von wdudek

I have a library I wrote that launches several threads in the background and
then uses locks to prevent other threads from interferring with them while
they do some work. All of them are simply querying a database and building up
lists of results. This works fine on the development platforms, which are
single server IIS 6 installations. However when we tried to put it on a web
farm, we began to get a windows login box at times when one thread may be
waiting on another to complete. Is this an expected problem? I did have
questions about this working on the web farm, but was not able to find any
articles indicating it would not? Any thoughts on the matter?

Thanks,

Bill

Re: Multi threaded libraries on a web farm

am 20.11.2007 05:03:38 von David Wang

On Nov 19, 12:38 pm, wdudek wrote:
> I have a library I wrote that launches several threads in the background and
> then uses locks to prevent other threads from interferring with them while
> they do some work. All of them are simply querying a database and building up
> lists of results. This works fine on the development platforms, which are
> single server IIS 6 installations. However when we tried to put it on a web
> farm, we began to get a windows login box at times when one thread may be
> waiting on another to complete. Is this an expected problem? I did have
> questions about this working on the web farm, but was not able to find any
> articles indicating it would not? Any thoughts on the matter?
>
> Thanks,
>
> Bill


There is no inherent problem with multi-threaded libraries and a web
farm. For example, ASP.Net and its Session State Service is a good
example of such a working system where multiple threads from multiple
machines can synchronize authenticated access to a SQL database and be
consistent.

Without knowing the design/implementation of your library, it is hard
to determine what is wrong with it.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Multi threaded libraries on a web farm

am 20.11.2007 09:51:57 von wjzhang

Hi Bill,

If application prompts with Windows login dialog, it's most likely you meet
authentication issue on the deployment.

Could you please provide more detailed information of the application's
design and architecture? Also, if this is an authentication issue, there
should be some corresponding records logged into IIS log files:
\System32\LogFiles\W3SVC[n]\ directory (n here is the Site ID which can be
viewed in the right panel by clicking Web Sites folder in IIS). You can
reproduce the issue again and post the recent log content here. We will
help on reviewing it.

Have a nice day.

Sincerely,

WenJun Zhang

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at:

http://msdn.microsoft.com/subscriptions/support/default.aspx .

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Re: Multi threaded libraries on a web farm

am 20.11.2007 16:26:04 von wdudek

Thanks, my first concern was that I was doing something inherently wrong.

"David Wang" wrote:

> On Nov 19, 12:38 pm, wdudek wrote:
> > I have a library I wrote that launches several threads in the background and
> > then uses locks to prevent other threads from interferring with them while
> > they do some work. All of them are simply querying a database and building up
> > lists of results. This works fine on the development platforms, which are
> > single server IIS 6 installations. However when we tried to put it on a web
> > farm, we began to get a windows login box at times when one thread may be
> > waiting on another to complete. Is this an expected problem? I did have
> > questions about this working on the web farm, but was not able to find any
> > articles indicating it would not? Any thoughts on the matter?
> >
> > Thanks,
> >
> > Bill
>
>
> There is no inherent problem with multi-threaded libraries and a web
> farm. For example, ASP.Net and its Session State Service is a good
> example of such a working system where multiple threads from multiple
> machines can synchronize authenticated access to a SQL database and be
> consistent.
>
> Without knowing the design/implementation of your library, it is hard
> to determine what is wrong with it.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>