Concurrent Obiects 并发对象 Institute of Computer Software 2021/1/27 Nanjing University
并发对象 Concurrent Objects 2021/1/27 Institute of Computer Software Nanjing University 1
最病 过摘要 2 口并发基础知识 口并发与面向对象程序设计 口Java并发模型 n Semaphores and reader/writer in Java Institute of Computer Software 2021/1/27 Nanjing University
摘要 并发基础知识 并发与面向对象程序设计 Java并发模型 Semaphores and reader/writer in Java 2021/1/27 Institute of Computer Software Nanjing University 2
最病 过摘要 口并发基础知识 口并发与面向对象程序设计 口Java并发模型 n Semaphores and reader/writer in Java Institute of Computer Software 2021/1/27 Nanjing University
摘要 并发基础知识 并发与面向对象程序设计 Java并发模型 Semaphores and reader/writer in Java 2021/1/27 Institute of Computer Software Nanjing University 3
最病 过并发基础知识 口并发的概念 口并发程序设计 口“并发”和“面向对象” Institute of Computer Software 2021/1/27 Nanjing University
并发基础知识 并发的概念 并发程序设计 “并发”和“面向对象” 2021/1/27 Institute of Computer Software Nanjing University 4
最病 过并发基础知识 5 口并发的概念 口并发程序设计 口“并发”和“面向对象” Institute of Computer Software 2021/1/27 Nanjing University
并发基础知识 并发的概念 并发程序设计 “并发”和“面向对象” 2021/1/27 Institute of Computer Software Nanjing University 5
最病 What is“ Concurrency"? 6 a Edsger Wybe Dijkstra Concurrency occurs when two or more execution are able to run simultaneously. n Roscoe, A w. the Theory and Practice of concu 7997 n Concurrency is a property of systems in which several computational processes are executing at the same time and potentially interacting with each other. Institute of Computer Software 2021/1/27 Nanjing University
What is “Concurrency”? Edsger Wybe Dijkstra "Concurrency occurs when two or more execution flows are able to run simultaneously." Roscoe, A. W. The Theory and Practice of Concurrency, 1997 “Concurrency is a property of systems in which several computational processes are executing at the same time, and potentially interacting with each other.” 2021/1/27 Institute of Computer Software Nanjing University 6
最病 A Concurrent Computing 7 n Concurrent(simultaneous) execution of multiple interacting computational tasks n These tasks may be implemented as separate programs, or as a set of processes or threads created by a single program a Ihe tasks may also be executing on a single processor, several processors in close proximity, or distributed across a network Institute of Computer Software 2021/1/27 Nanjing University
Concurrent Computing Concurrent (simultaneous) execution of multiple interacting computational tasks. These tasks may be implemented as separate programs, or as a set of processes or threads created by a single program. The tasks may also be executing on a single processor, several processors in close proximity, or distributed across a network. 2021/1/27 Institute of Computer Software Nanjing University 7
最病 A Concurrent Computing 8 a Concurrent computing is related to parallel computing but focuses more on the interactions between tasks 口 key concerns: 1 a Correct sequencing of the interactions or communications between different tasks a The coordination of access to resources that are shared between tasks Institute of Computer Software 2021/1/27 Nanjing University
Concurrent Computing Concurrent computing is related to parallel computing, but focuses more on the interactions between tasks. Key concerns: Correct sequencing of the interactions or communications between different tasks The coordination of access to resources that are shared between tasks 2021/1/27 Institute of Computer Software Nanjing University 8
最病 过并发基础知识 9 口并发的概念 口并发程序设计 口“并发”和“面向对象” Institute of Computer Software 2021/1/27 Nanjing University
并发基础知识 并发的概念 并发程序设计 “并发”和“面向对象” 2021/1/27 Institute of Computer Software Nanjing University 9
Weil Concurrent Programming 口多道程序设计( Multiprogramming) 口系统同时接纳多个程序进入内存,让它们在OS控 制下交迭或夹插执行的方式 ■存储浮动和程序保护 ■处理器管理和调度 ■系统资源的管理 Institute of Computer Software 2021/1/27 Nanjing University
Concurrent Programming 多道程序设计(Multiprogramming) 系统同时接纳多个程序进入内存,让它们在OS控 制下交迭或夹插执行的方式 ◼ 存储浮动和程序保护 ◼ 处理器管理和调度 ◼ 系统资源的管理 2021/1/27 Institute of Computer Software Nanjing University 10