课程信息
4.5
288 个评分
40 个审阅
100% 在线

100% 在线

立即开始,按照自己的计划学习。
可灵活调整截止日期

可灵活调整截止日期

根据您的日程表重置截止日期。
中级

中级

完成时间(小时)

完成时间大约为14 小时

建议:Four weeks of study, 4-8 hours/week depending on past experience with sequential programming in Java...
可选语言

英语(English)

字幕:英语(English)

您将获得的技能

Concurrency (Computer Science)Actor ModelOptimistic Concurrency ControlJava Concurrency
100% 在线

100% 在线

立即开始,按照自己的计划学习。
可灵活调整截止日期

可灵活调整截止日期

根据您的日程表重置截止日期。
中级

中级

完成时间(小时)

完成时间大约为14 小时

建议:Four weeks of study, 4-8 hours/week depending on past experience with sequential programming in Java...
可选语言

英语(English)

字幕:英语(English)

教学大纲 - 您将从这门课程中学到什么

1
完成时间(小时)
完成时间为 1 小时

Welcome to the Course!

Welcome to Concurrent Programming in Java! This course is designed as a three-part series and covers a theme or body of knowledge through various video lectures, demonstrations, and coding projects....
Reading
1 个视频 (总计 1 分钟), 5 个阅读材料, 1 个测验
Video1 个视频
Reading5 个阅读材料
General Course Info5分钟
Course Icon Legend2分钟
Discussion Forum Guidelines2分钟
Pre-Course Survey10分钟
Mini Project 0: Setup10分钟
完成时间(小时)
完成时间为 4 小时

Threads and Locks

In this module, we will learn about threads and locks, which have served as primitive building blocks for concurrent programming for over five decades. All computing platforms today include some form of support for threads and locks, and make them available for use by developers in a wide range of programming languages. We will learn how threads can be created, joined, and synchronized using structured (e.g., synchronized statements/methods) and unstructured (e.g., java.util.concurrent libraries) locks in Java. We will also learn about new classes of bugs that can arise when concurrent programs need to access shared resources. These bugs are referred to as violations of liveness/progress guarantees, and include deadlock, livelock, and starvation. We will conclude this module by studying different solutions to the classical "Dining Philosophers" problem, and use these solutions to illustrate instances of deadlock, livelock and starvation....
Reading
6 个视频 (总计 41 分钟), 6 个阅读材料, 2 个测验
Video6 个视频
1.2 Structured Locks7分钟
1.3 Unstructured Locks7分钟
1.4 Liveness7分钟
1.5 Dining Philosophers8分钟
Demonstration: Locking and Synchronization4分钟
Reading6 个阅读材料
1.1 Lecture Summary5分钟
1.2 Lecture Summary5分钟
1.3 Lecture Summary5分钟
1.4 Lecture Summary5分钟
1.5 Lecture Summary5分钟
Mini Project 1: Locking and Synchronization10分钟
Quiz1 个练习
Module 1 Quiz30分钟
2
完成时间(小时)
完成时间为 4 小时

Critical Sections and Isolation

In this module, we will learn different approaches to coordinating accesses to shared resources without encountering the deadlock or livelock bugs studied earlier. Critical/isolated sections are higher-level concurrent programming constructs (relative to locks) that simplify the implementation of mutual exclusion by guaranteeing the absence of deadlocks and livelocks. Object-based isolation relaxes the constraints imposed by critical sections by allowing mutual exclusion to be specified on a per-object basis, as illustrated in the Spanning Tree example. Java's atomic variables represent an important, but restricted, case of object-based isolation that is implemented efficiently on all hardware platforms. Finally, we will learn how object-based isolation can be further relaxed with read/write access modes....
Reading
6 个视频 (总计 36 分钟), 6 个阅读材料, 2 个测验
Video6 个视频
2.2 Object Based Isolation (Monitors)7分钟
2.3 Concurrent Spanning Tree Algorithm6分钟
2.4 Atomic Variables6分钟
2.5 Read, Write Isolation5分钟
Demonstration: Global and Object-Based Isolation3分钟
Reading6 个阅读材料
2.1 Lecture Summary10分钟
2.2 Lecture Summary10分钟
2.3 Lecture Summary10分钟
2.4 Lecture Summary10分钟
2.5 Lecture Summary10分钟
Mini Project 2: Global and Object-Based Isolation10分钟
Quiz1 个练习
Module 2 Quiz33分钟
完成时间(小时)
完成时间为 20 分钟

Talking to Two Sigma: Using it in the Field

Join Professor Vivek Sarkar as he talks with Software Engineer, Dr. Shams Imam, at their downtown Houston, Texas office about threads, locks, deadlocks, high-level and low-level constructs, and the importance of concurrent programming. ...
Reading
2 个视频 (总计 10 分钟), 1 个阅读材料
Video2 个视频
Industry Professional on Concurrency - Dr. Shams Imam, Software Engineer3分钟
Reading1 个阅读材料
About these Talks10分钟
3
完成时间(小时)
完成时间为 4 小时

Actors

In this module, we will learn another high-level approach to concurrent programming called the "Actor" model. A major difference between the Actor model and the Isolated Sections model is that there are no data races possible in the Actor model because it does not allow for any form of shared variables. However, as in all concurrent programming models, higher-level forms of nondeterminism are still possible in the Actor model due to an inherent asynchrony in the order in which messages may be delivered. We will study multiple examples of concurrency using the Actor model, including the classical Sieve of Eratosthenes algorithm to generate prime numbers, as well as producer-consumer patterns with both unbounded and bounded buffers....
Reading
6 个视频 (总计 29 分钟), 6 个阅读材料, 2 个测验
Video6 个视频
3.1 Actors5分钟
3.2 Actor Examples6分钟
3.3 Sieve of Eratosthenes Algorithm5分钟
3.4 Producer-Consumer Problem4分钟
3.5 Bounded Buffer Problem3分钟
Demonstration: Sieve of Eratosthenes Using Actor Parallelism3分钟
Reading6 个阅读材料
3.1 Lecture Summary10分钟
3.2 Lecture Summary10分钟
3.3 Lecture Summary10分钟
3.4 Lecture Summary10分钟
3.5 Lecture Summary10分钟
Mini Project 3: Sieve of Eratosthenes Using Actor Parallelism10分钟
Quiz1 个练习
Module 3 Quiz30分钟
4
完成时间(小时)
完成时间为 4 小时

Concurrent Data Structures

In this module, we will study Concurrent Data Structures, which form an essential software layer in all multithreaded programming systems. First, we will learn about Optimistic Concurrency, an important multithreaded pattern in which two threads can "optimistically" make progress on their assigned work without worrying about mutual conflicts, and only checking for conflicts before "committing" the results of their work. We will then study the widely-used Concurrent Queue data structure. Even though the APIs for using concurrent queues are very simple, their implementations using the Optimistic Concurrency model can be complex and error-prone. To that end, we will also learn the formal notion of Linearizability to better understand correctness requirements for concurrent data structures. We will then study Concurrent Hash Maps, another widely-used concurrent data structure. Finally, we discuss a concurrent algorithm for finding a Minimum Spanning Tree of an undirected graph, an algorithm that relies on the use of Concurrent Data Structures under the covers....
Reading
6 个视频 (总计 38 分钟), 7 个阅读材料, 2 个测验
Video6 个视频
4.2 Concurrent Queue5分钟
4.3 Linearizability6分钟
4.4 Concurrent Hash Map5分钟
4.5 Concurrent Minimum Spanning Tree Algorithm7分钟
Demonstration: Parallelization of Boruvka's Minimum Spanning Tree Algorithm7分钟
Reading7 个阅读材料
4.1 Lecture Summary10分钟
4.2 Lecture Summary10分钟
4.3 Lecture Summary10分钟
4.4 Lecture Summary10分钟
4.5 Lecture Summary10分钟
Mini Project 4: Parallelization of Boruvka's Minimum Spanning Tree Algorithm10分钟
Exit Survey10分钟
Quiz1 个练习
Module 4 Quiz30分钟
完成时间(小时)
完成时间为 15 分钟

Continue Your Journey with the Specialization "Parallel, Concurrent, and Distributed Programming in Java"

The next two videos will showcase the importance of learning about Parallel Programming and Distributed Programming in Java. Professor Vivek Sarkar will speak with industry professionals at Two Sigma about how the topics of our other two courses are utilized in the field....
Reading
2 个视频 (总计 13 分钟), 1 个阅读材料
Video2 个视频
Industry Professional on Distribution - Dr. Eric Allen, Senior Vice President, Two Sigma6分钟
Reading1 个阅读材料
Our Other Course Offerings2分钟
4.5
40 个审阅Chevron Right

热门审阅

创建者 PSSep 2nd 2017

Great course. With minimal effort you can learn about important concepts and see immediate results regarding the actual speedup you can achieve using concurrent programming.

创建者 SMNov 12th 2017

This was a good course and covered all the topics relevant to the course. I liked the Optimistic Concurrency in week 4 - that was an area I was not exposed to before

讲师

Avatar

Vivek Sarkar

Professor
Department of Computer Science

关于 Rice University

Rice University is consistently ranked among the top 20 universities in the U.S. and the top 100 in the world. Rice has highly respected schools of Architecture, Business, Continuing Studies, Engineering, Humanities, Music, Natural Sciences and Social Sciences and is home to the Baker Institute for Public Policy....

关于 Parallel, Concurrent, and Distributed Programming in Java 专项课程

Parallel, concurrent, and distributed programming underlies software in multiple domains, ranging from biomedical research to financial services. This specialization is intended for anyone with a basic knowledge of sequential programming in Java, who is motivated to learn how to write parallel, concurrent and distributed programs. Through a collection of three courses (which may be taken in any order or separately), you will learn foundational topics in Parallelism, Concurrency, and Distribution. These courses will prepare you for multithreaded and distributed programming for a wide range of computer platforms, from mobile devices to cloud computing servers. To see an overview video for this Specialization, click here! For an interview with two early-career software engineers on the relevance of parallel computing to their jobs, click here. Acknowledgments The instructor, Prof. Vivek Sarkar, would like to thank Dr. Max Grossman for his contributions to the mini-projects and other course material, Dr. Zoran Budimlic for his contributions to the quizzes, Dr. Max Grossman and Dr. Shams Imam for their contributions to the pedagogic PCDP library used in some of the mini-projects, and all members of the Rice Online team who contributed to the development of the course content (including Martin Calvi, Annette Howe, Seth Tyger, and Chong Zhou)....
Parallel, Concurrent, and Distributed Programming in Java

常见问题

  • 注册以便获得证书后,您将有权访问所有视频、测验和编程作业(如果适用)。只有在您的班次开课之后,才可以提交和审阅同学互评作业。如果您选择在不购买的情况下浏览课程,可能无法访问某些作业。

  • 您注册课程后,将有权访问专项课程中的所有课程,并且会在完成课程后获得证书。您的电子课程证书将添加到您的成就页中,您可以通过该页打印您的课程证书或将其添加到您的领英档案中。如果您只想阅读和查看课程内容,可以免费旁听课程。

还有其他问题吗?请访问 学生帮助中心