<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Just to be exact : the application pool is a per-process thing; one application can run many regions. This is the source of the current situation where one client can hog 9 threads in the application - one for each region it's connected to. Which will scale VERY poorly.<BR>
<BR>
So yeah; moving towards 'units of work' and one shared threadpool would be a good thing for many reasons.<BR>
<BR>
/Stefan<BR><BR><BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: tleiades@hotmail.com<BR>To: opensim-dev@lists.berlios.de<BR>Date: Mon, 24 Sep 2007 18:16:01 +0200<BR>Subject: Re: [Opensim-dev] Threading strategy<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
</STYLE>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>> How would the thread pool help ? IMHO the threads should be per-region, not per-client - then the number of threads would be quite limited.<BR><BR><FONT face=Arial size=2>Ok, I can see that I may not have been clear in my communications, sorry about that. What I was trying to say was that, IMO is this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) I think that the current codebase, having a lot of different strategies for handling threading is makes the code harder to read.</FONT></DIV>
<DIV><FONT face=Arial size=2>2) That Threadpools, were designed into the .NET framework, to assist in creating multithreaded applications, without introducing the overhead of an application having a lot of threads (creating, </FONT><FONT face=Arial size=2>destroying and switching threads)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To my knowledge, each application domain has a separate threadpool, consequently I believe that the threadpool is a per-region thing.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/Tleiades</FONT></DIV></BLOCKQUOTE></body>
</html>