TAILIEUCHUNG - Parallel Programming: for Multicore and Cluster Systems- P13

Parallel Programming: for Multicore and Cluster Systems- P13: Innovations in hardware architecture, like hyper-threading or multicore processors, mean that parallel computing resources are available for inexpensive desktop computers. In only a few years, many standard software products will be based on concepts of parallel programming implemented on such hardware, and the range of applications will be much broader than that of scientific computing, up to now the main application area for parallel computing | Levels of Parallelism 111 When employing the client-server model for the structuring of parallel programs multiple client threads are used which generate requests to a server and then perform some computations on the result see Fig. right for an illustration. After having processed a request of a client the server delivers the result back to the client. The client-server model can be applied in many variations There may be several server threads or the threads of a parallel program may play the role of both clients and servers generating requests to other threads and processing requests from other threads. Section shows an example for a Pthreads program using the client-server model. The client-server model is important for parallel programming in heterogeneous systems and is also often used in grid computing and cloud computing. Pipelining The pipelining model describes a special form of coordination of different threads in which data elements are forwarded from thread to thread to perform different processing steps. The threads are logically arranged in a predefined order T1 . Tp such that thread T receives the output of thread T-1 as input and produces an output which is submitted to the next thread Ti 1 as input i 2 . p - 1. Thread T1 receives its input from another program part and thread Tp provides its output to another program part. Thus each of the pipeline threads processes a stream of input data in sequential order and produces a stream of output data. Despite the dependencies of the processing steps the pipeline threads can work in parallel by applying their processing step to different data. The pipelining model can be considered as a special form of functional decomposition where the pipeline threads process the computations of an application algorithm one after another. A parallel execution is obtained by partitioning the data into a stream of data elements which flow through the pipeline stages one after another. At each point

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.