Preview

Parallelism and Concurrency

Powerful Essays
Open Document
Open Document
19352 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Parallelism and Concurrency
A Sophomoric∗ Introduction to
Shared-Memory Parallelism and Concurrency
Dan Grossman
Version of February 23, 2012

Contents
1

2

Meta-Introduction: An Instructor’s View of These Notes
1.1 Where This Material Fits in a Changing Curriculum . .
1.2 Six Theses On A Successful Approach to this Material
1.3 How to Use These Notes — And Improve Them . . . .
1.4 Acknowledgments . . . . . . . . . . . . . . . . . . .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

2
2
3
3
4

Introduction
2.1 More Than One Thing At Once . .
2.2 Parallelism vs. Concurrency . . .
2.3 Basic Threads and Shared Memory
2.4 Other Models . . . . . . . . . . .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

4
4
5
6
9

Basic Fork-Join Parallelism
3.1 A Simple Example: Okay Idea, Inferior Style
3.2 Why Not To Use One Thread Per Processor .
3.3 Divide-And-Conquer Parallelism . . . . . . .
3.4 The Java ForkJoin Framework . . . . . . . .
3.5 Reductions and Maps . . . . . . . . . . . . .
3.6 Data Structures Besides Arrays . . . . . . . .

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.

You May Also Find These Documents Helpful

  • Good Essays

    Sullivan Commission Summary

    • 4817 Words
    • 20 Pages

    Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii…

    • 4817 Words
    • 20 Pages
    Good Essays
  • Good Essays
    • 1161 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Chem Eei Hints

    • 8147 Words
    • 33 Pages

    11. Acknowledgments In this section you should give credit to everyone who assisted you. This may include individuals, businesses and educational or research institutions. Identify any financial support or material donations you may have received.…

    • 8147 Words
    • 33 Pages
    Good Essays
  • Powerful Essays

    Pgcse 2014 Syllabus Essay

    • 7509 Words
    • 31 Pages

    Trainee/ student to complete (your work cannot be accepted for marking unless the declaration is signed):…

    • 7509 Words
    • 31 Pages
    Powerful Essays
  • Good Essays

    When the phrase “A, What’s More B, comes to mind one may quickly think of the word parallelism.” Parallelism is the joining together of related ideas to form a complete thought” (Fields, 2008). Additionally, parallelism relates to the written communication between the phrases of poetic lines which are found in certain books of the Bible. Many examples of parallelism are found in the books of Proverbs and Psalms. When one completes a parallelism it is then referred to as a line. Each of these lines must include at least two or more poetic phrases and or colons.…

    • 516 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v About the authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vii…

    • 4916 Words
    • 20 Pages
    Better Essays
  • Powerful Essays

    Acknowledgement … … … … … … … … … … … … … … … … vii…

    • 10431 Words
    • 42 Pages
    Powerful Essays
  • Better Essays

    Acknowledgements_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Pg 4…

    • 3783 Words
    • 16 Pages
    Better Essays
  • Powerful Essays

    Parallelism

    • 3020 Words
    • 13 Pages

    Chapter 19, Question 1: What are some of the common characteristics of Hebrew poetry? How much does biblical poetry differ from much of our modern poetry? Meter, parallelism, chiasm, and acrostics, (p. 282 -285)…

    • 3020 Words
    • 13 Pages
    Powerful Essays
  • Better Essays

    Parallel Processing

    • 1221 Words
    • 5 Pages

    Visual search, the task of finding a target among distractors, is a common task in our daily lives. Whether we are searching for the remote control among a clutter of objects on table, a face in the crowd at the local bus stop, or a meal listing on the menu at the fast-food restaurant, we rely on the mechanism of visual search and attention each and every day. The ease of search depends primarily on how distinguishable the target of search is from the background. Often times, we depend on attention to facilitate this search for our given target. Attention can help one find an object by, say, focusing on the location of the target. There are two modes of attention in which people typically rely on: parallel processing and serial processing. Parallel processing involves investigating and analyzing a multitude of objects on many different kinds of analysis all at the same time. In contrast, serial processing involves investigating each object one at a time.…

    • 1221 Words
    • 5 Pages
    Better Essays
  • Good Essays

    . Description: Modern operating systems, by permitting more than one data processing task to be performed concurrently, make possible more efficient use of system resources. If a program that is being executed to accomplish a task must be delayed, for example, until more data is read into the computer, performance of some other completely independent task can proceed. The central processing unit can execute another program or even execute the same program to accomplish a different task. In the competition for system resources, such as main storage space or data sets (files), however, all multitasking systems are subject to a condition referred to as deadlock. This condition prevents the affected tasks from being carried out to completion. Several conditions must exist for tasks to become deadlocked. Consider a simple example involving only two tasks that are being performed concurrently. Assume that each task has been allocated a system resource which has been used in partially completing the task. Assume also that allocated resources are released only after completion of the task. If completing each task requires an additional resource and if the additional resource has been allocated to the other task, neither task can be completed; that is, task deadlock exists. Such impasses can arise in many forms involving many tasks, and when task deadlock does occur, there is no known general technique for correcting the condition. Problem: Case histories Acquiring for each job step, in turn, the resources required to This module actually issues the ATTACH macroinstruction, As shown in Figure 3. as the jobs were executed. Requests are fraught with deadlock…

    • 265 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    ABSTRACT................................................................................................................................................ 4 ACKNOWLEDGEMENT ............................................................................................................................. 4 INTRODUCTION ....................................................................................................................................... 5 COMPANY PROFILE ................................................................................................................................. 6 COMPANY BACKGROUND ................................................................................................................... 6 MANAGEMENT STRUCTURE ............................................................................................................... 7 KEY SECTIONS OF THE…

    • 4189 Words
    • 17 Pages
    Powerful Essays
  • Powerful Essays

    Concurrency control

    • 1856 Words
    • 8 Pages

    1. In this exercise, you will see how to rollback or commit transactions. By default PostgreSQL commits each SQL statement as soon as it is submitted. To prevent the transaction from committing immediately, you have to issue a command begin; to tell PostgreSQL to not commit immediately. You can issue any number of SQL statements after this, and then either commit; to commit the transaction, or rollback; to rollback the transaction. To see the effect, execute the following commands one at a time…

    • 1856 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    One of the most pleasant aspects of writing an acknowledgement is the opportunity to thank all those who have contributed to it. Unfortunately, the list of expression of gratitude- no matter how extensive – is always incomplete and inadequate. This acknowledgement is no exception.…

    • 5002 Words
    • 21 Pages
    Powerful Essays
  • Better Essays

    Work essay

    • 1243 Words
    • 51 Pages

    Pebesma, E.J., 2004. Multivariable geostatistics in S: the gstat package. Computers & Geosciences, 30: 683-691.…

    • 1243 Words
    • 51 Pages
    Better Essays

Related Topics