Reputation: 2852
Greetings Overflowers,
Users execute transactions, transactions execute queries, queries execute index operations.
I've limited number of threads and I want to give them, in order of priority, to users then transactions then queries then index operations.
Note that dependencies might exist between executions.
If there are available threads I want more granular executions to utilize them.
What are the possible designs to model such dynamics ?
Any good recent books on concurrency design patterns ?
PS: I'm using c#.net 4
Regards
Upvotes: 2
Views: 720
Reputation: 45101
Maybe you should take a look into Patterns for Parallel Programming: Understanding and Applying Parallel Patterns with the .NET Framework 4.
Upvotes: 3