What are the relative merits for implementing an Erlang-style "Continuation" pattern in C#

Posted by JoeGeeky on Programmers See other posts from Programmers or by JoeGeeky
Published on 2011-11-30T19:57:57Z Indexed on 2011/12/01 2:18 UTC
Read the original article Hit count: 318

What are the relative merits (or demerits) for implementing an Erlang-style "Continuation" pattern in C#. I'm working on a project that has a large number of Lowest priority threads and I'm wondering if my approach may be all wrong.

It would seem there is a reasonable upper limit to the number of long-running threads that any one Process 'should' spawn. With that said, I'm not sure what would signal the tipping-point for too many thread or when alternate patterns such as "Continuation" would be more suitable.

In this case, many of the threads do a small amount of work and then sleep until woken to go again (Ex. Heartbeat, purge caches, etc...). This continues for the life of the Process.

© Programmers or respective owner

Related posts about c#

Related posts about design-patterns