`
jubincn
  • 浏览: 232516 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
文章分类
社区版块
存档分类
最新评论

Concurrency vs Parallelism, Concurrent Programming vs Parallel Programming

 
阅读更多
THIS BLOG HAS BEEN MOVED TOtouchdreams.net/blog.

In the danger of hairsplitting, ...

ConcurrencyandparallelismareNOTthe same thing. Two tasksT1andT2are concurrent if the order in which the two tasks are executed in time is not predetermined,

  • T1may be executed and finished beforeT2,
  • T2may be executed and finished beforeT1,
  • T1andT2may be executed simultaneously at the same instance of time (parallelism),
  • T1andT2may be executed alternatively,
  • ...

If two concurrent threads are scheduled by the OS to run on one single-core non-SMT non-CMP processor, you may get concurrency but not parallelism. Parallelism is possible on multi-core, multi-processor or distributed systems.

Concurrencyis often referred to as a property of a program, and is a concept more general thanparallelism.

Interestingly, wecannotsay the same thing forconcurrent programmingandparallel programming. They are overlapped, but neither is the superset of the other. The difference comes from the sets of topics the two areas cover. For example, concurrent programming includes topic like signal handling, while parallel programming includes topic like memory consistency model. The difference reflects the different orignal hardware and software background of the two programming practices.

Update:More on Concurrency vs ParallelismTHIS BLOG HAS BEEN MOVED TOtouchdreams.net/blog.

分享到:
评论

相关推荐

    Parallel and Concurrent Programming in Haskell

    size ts all programming model for concurrency and parallelism exists, and so prematurely committing to one particular paradigm is likely to tilt the language towards favouring certain kinds of problem...

    avaScript.Concurrency.178588923

    Learn how concurrent and parallel programming can help you tackle the challenges of fast, data heavy web development Table of Contents Chapter 1: Why JavaScript Concurrency? Chapter 2: The JavaScript...

    Csharp.Multithreaded.and.Parallel.Programming

    Title: C# Multithreaded and Parallel Programming Author: Rodney Ringler Length: 482 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2014-12-24 ISBN-10: 184968832X ISBN...

    JavaScript Concurrency pdf 无水印 0分

    Learn how concurrent and parallel programming can help you tackle the challenges of fast, data heavy web development Who This Book Is For This book is written for any JavaScript developer who wants to...

    Mastering C# Concurrency(PACKT,2015)

    You will explore the concepts of parallelism granularity, and fine-grained and coarse-grained parallel tasks by choosing a concurrent program structure and parallelizing the workload optimally....

    .NET Design Patterns [Kindle Edition]

    Be able to implement concurrent/parallel programming techniques using idioms under .NET Avoiding pitfalls when creating compositional, readable, and maintainable code using imperative, functional, and...

    Mastering.Csharp.Concurrency

    You will explore the concepts of parallelism granularity, and fine-grained and coarse-grained parallel tasks by choosing a concurrent program structure and parallelizing the workload optimally....

    Mastering C# Concurrency

    You will explore the concepts of parallelism granularity, and fine-grained and coarse-grained parallel tasks by choosing a concurrent program structure and parallelizing the workload optimally....

    Haskell Data Analysis Cookbook(PACKT,2014)

    The meat of data analysis occurs in the topics involving statistical techniques, parallelism, concurrency, and machine learning algorithms, along with various examples of visualizing and exporting ...

    LACPP_Project

    LACPP_项目使用 Sobel 算子的顺序、线程和基于任务的边缘检测算法。 ####如何构建由于 OpenCV 用于加载图像,因此在构建时必须链接 OpenCV 的库。 提供指向包含 OpenCV 的库路径的链接。 (例如:-L/usr/lib/i386-...

    python3.6.5参考手册 chm

    Text Vs. Data Instead Of Unicode Vs. 8-bit Overview Of Syntax Changes New Syntax Changed Syntax Removed Syntax Changes Already Present In Python 2.6 Library Changes PEP 3101: A New Approach To ...

    Hamsters.js:100%Vanilla Javascript多线程和并行执行库

    仓鼠 作者:奥斯汀·史密斯(Austin K. Smith) 网址: 描述:100%Vanilla Javascript多线程和并行执行库 许可:艺术许可2.0 环境支援 所有主要浏览器IE9 + 现有Web Worker的内部(线程内部的线程) ...

    The way to go

    1.2.8 Programming in Go......................................................................................10 1.2.9 Summary.............................................................................

    [Go语言入门(含源码)] The Way to Go (with source code)

    The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................

    A pracitcal introduction to hardware software codesign

    1.7 Concurrency and Parallelism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1.8 Summary.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

Global site tag (gtag.js) - Google Analytics