Multithreaded algorithms




CS255

Chris Pollett

Feb 9, 2015

Outline

Introduction

Going from Serial Algorithm to Parallel Algorithm

Method of Generating Functions

Dynamic Multithreaded Fibonacci

In-Class Exercise

Model of Multithreaded Execution

A multithreaded DAG representing the computation of P-Fib(n)

More on Multithreaded Execution

The image of the last slide shows the computation of P-Fib(4).

Performance Measures

Runtime of a Multithreaded Computation

Parallelism