Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Concluding Remarks > Writing Parallel Applications

Writing Parallel Applications

The key part of writing parallel applications is identifying where the parallelization will provide the most benefit for the least cost. If the application has not yet been written, then analysis is necessary to determine what work can be completed in parallel. This analysis needs to take the critical performance metrics for the application into account—is the application more concerned with throughput, or is response time more important? Both are usually important, and the question can be interpreted as whether the expected response time is sufficiently fast, in which case the threads can be assigned to providing throughput, or the response time is insufficient, in which case the threads should be assigned to reducing this.

Making an existing application run in parallel is a harder task. The first step is to profile the application to determine where the time is currently spent. The art of performance tuning is to determine a region of code where sufficient time is spent so that any improvement in that region would result in an observable performance gain for the entire application.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint