开发者

Parallelism with .NET 4.0 in a desktop sqlite single thread application?

Where do you see operation scenarios for parallelism/multi-threading/PLINQ etc for a singl开发者_开发知识库e threaded WPF desktop app with sqlite?

I would like to know wether I could tune my application somehow and even when it is just for the learning effect :)


It all depends on what your app is doing. If you at all are doing data processing of some kind you should look into whether data can be split up into independent units and thus be able to process these in parallel.

LOB apps process data even if it just means "fetch Customers from database and present them in a list". Perhaps you could do the fetching asynchronously while doing some "loader" animation in the view. Though simple, it is still parallelism and still a learning challenge to get it working.

That said, trying to parallelize stuff that already runs well on a single core is overkill. Perhaps you should look for a different project to try out parallelism.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜