PC Review


Reply
Thread Tools Rate Thread

AppDomains and shared Threadpool?

 
 
Shawn B.
Guest
Posts: n/a
 
      12th Feb 2007
Greetings,

I have an application that must load various modules. Each module must be
able to execute concurrently, so I'm spawning a thread and each thread hosts
its own AppDomain. I for various reasons, I must create a custom
threadpool. I would like to share that threadpool with each of the
AppDomains so the threads can be used/recycled between the AppDomains and
the threadpool can continue to be controlled/scheduled by the default
AppDomain/Process.

Is there a way to share the threadpool between each AppDomain? I'm hoping
this can be a pure C# solution. Ultimately, it is a Windows Service that
will load other modules that act as a service and function independantly.


Thanks,
Shawn


 
Reply With Quote
 
 
 
 
Brian Gideon
Guest
Posts: n/a
 
      12th Feb 2007
On Feb 11, 9:23 pm, "Shawn B." <lea...@html.com> wrote:
> Greetings,
>
> I have an application that must load various modules. Each module must be
> able to execute concurrently, so I'm spawning a thread and each thread hosts
> its own AppDomain. I for various reasons, I must create a custom
> threadpool. I would like to share that threadpool with each of the
> AppDomains so the threads can be used/recycled between the AppDomains and
> the threadpool can continue to be controlled/scheduled by the default
> AppDomain/Process.
>
> Is there a way to share the threadpool between each AppDomain? I'm hoping
> this can be a pure C# solution. Ultimately, it is a Windows Service that
> will load other modules that act as a service and function independantly.
>
> Thanks,
> Shawn


Shawn,

You might consider Microsoft's Concurrency and Coordination Runtime
(CCR) or William Stacey's Port Concurrency Runtime (PCR).

http://msdn.microsoft.com/msdnmag/is...s/default.aspx
http://www.codeplex.com/PCR

Brian



 
Reply With Quote
 
Shawn B.
Guest
Posts: n/a
 
      14th Feb 2007
> You might consider Microsoft's Concurrency and Coordination Runtime
> (CCR) or William Stacey's Port Concurrency Runtime (PCR).
>
> http://msdn.microsoft.com/msdnmag/is...s/default.aspx
> http://www.codeplex.com/PCR
>


CCR looks awesome but unfortunately our company will not license it for our
own internal use so it is immediately out of the question. I'll take a
closer look at PCR.


Thanks,
Shawn


 
Reply With Quote
 
Brian Gideon
Guest
Posts: n/a
 
      14th Feb 2007
On Feb 13, 8:46 pm, "Shawn B." <lea...@html.com> wrote:
> > You might consider Microsoft's Concurrency and Coordination Runtime
> > (CCR) or William Stacey's Port Concurrency Runtime (PCR).

>
> >http://msdn.microsoft.com/msdnmag/is...ntaffairs/defa...
> >http://www.codeplex.com/PCR

>
> CCR looks awesome but unfortunately our company will not license it for our
> own internal use so it is immediately out of the question. I'll take a
> closer look at PCR.
>
> Thanks,
> Shawn


Shawn,

And one disadvantage of the CCR is that you have to download the 45 MB
Robotics Studio. Honestly, I haven't used either one yet so I can't
comment too much on their capabilities.


Brian

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ThreadPool and AppDomains and DeadLock - HELP! Paul Wardle Microsoft Dot NET Framework 6 18th Jun 2007 07:29 PM
AppDomains - App within an App coder4@walla.com Microsoft C# .NET 2 5th Apr 2007 04:53 PM
How many AppDomains .... =?Utf-8?B?YmlsbHI=?= Microsoft Dot NET 1 29th Jul 2006 10:12 AM
About ThreadPool.QueueUserWorkItem and ThreadPool.RegisterWaitForSingleObject Henri Microsoft ASP .NET 5 8th Dec 2005 09:55 AM
AppDomains Jody L. Whitlock Microsoft VB .NET 2 26th Sep 2005 07:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.