| RE: [aus-dotnet] Has anyone used the CCR? |
- From: Jonathan Parker
- Subject: RE: [aus-dotnet] Has anyone used the CCR?
- Date: Wed, 13 Jun 2007 03:54:04 -0700
- Follow-Ups:
- Prev by Date: RE: [aus-dotnet] Smart Software Client Factory projects
- Next by Date: RE: [aus-dotnet] Has anyone used the CCR?
- Previous by thread: RE: [aus-dotnet] Has anyone used the CCR?
- Next by thread: RE: [aus-dotnet] Has anyone used the CCR?
- Index(es):
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
>>The
central feature of the CCR is that it makes programming asynchronous behavior
much simpler than the typical challenge of writing threaded code. Concurrency is definitely an interesting topic which is becoming
more and more relevant with dual-core, quad-core, ??-core CPUs. WCF allows you do make asynchronous, concurrent (a new thread
for each call to a service) calls to as service. You can even throttle calls with a simple setting of
maxConcurrentCalls in the app.config. When this limit is reached calls will be automatically queued
untill some of the currently executing calls finish. Is there something about the CCR that makes it more useful than WCF?
Am I missing something? There's a lot of concurrency management code examples using WCF
up on Idesign.net http://www.idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=11#ConcurrencyManagement From what I understand of WCF it allows you to write
multi-threaded .NET applications of any kind with the use of locks, monitors or
semaphores. All you have to do is add an attribute to the class implementing
the service like so: [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall,UseSynchronizationContext
= false)] This may not be the correct setting but it gives you a general
idea of how easy it is to implement concurrency in WCF. Jonathan Parker .NET Developer Email: info@xxxxxxxxxxxxxxxxxxxxx
Blog: www.jonathanparker.com.au From: peter@xxxxxxxxxxx
[mailto:peter@xxxxxxxxxxx] On Behalf Of ILT Following on from the Joel Pobar
Perth session on concurrency, I came across CCR via a message
post at CodeProject. The CCR - Concurrency and
Coordination Runtime for asynchronous processing (see here, for a description by Peter Blomberg)
– may offer in the CCR.Core assembly (154Kb) some welcome help with
threading and concurrency, beyond using the excellent BackgroundWorker
control and a lot of brain-power for the more elaborate scenarios. Unfortunately to get the 154K
assembly it is necessary to download 50Mb of the Microsoft Robotics Studio May
2007 CTP. Has anyone seen code / blog / more
thorough descriptions? Or – better – used the assembly and compared
its ease of use and applicability with roll-your-own management of threads and
concurrency using eg the thread pool? Here’s a description from
Bromberg’s Unblog for those that are interested. The
central feature of the CCR is that it makes programming asynchronous behavior
much simpler than the typical challenge of writing threaded code. [
MORE ] IL
Thomas |
(Click here for more information on the aus-dotnet mailling list)
