知识库--Power of Concurrency (71)

来源:互联网 发布:软件需求管理系统 编辑:程序博客网 时间:2024/06/07 23:48

The Power of Concurrency

1 Making Apps More Responsive
Not only can threads help make applications responsive, but they can help enhance the user experience. Applications can look ahead at operations the user may perform next and carry out the necessary actions, such as indexing or caching some data the user needs.

2 Making Apps Faster

Services –>apply rules and business workflow on each invoice, but we can process them in any order.//发票系统

Computationally Intensive Apps –>divide-and-conquer approach//分治法

Data Crunchers–>The wait time could be brought down to a mere
second or two by delegating the requests to multiple threads, assuming the network delay per request is a second or two and the system running the app has adequate resources and capabilities to spawn hundreds of threads.

0 0