上传者: lch1251680944
|
上传时间: 2021-09-09 21:39:46
|
文件大小: 2.95MB
|
文件类型: PDF
Introduction 2
The parallel computing memory architecture 3
Memory organization 6
Parallel programming models 14
How to design a parallel program 16
How to evaluate the performance of a parallel program 19
Introducing Python 21
Python in a parallel world 26
Introducing processes and threads 26
Start working with processes in Python 27
Start working with threads in Python 29
Chapter 2: Thread-based Parallelism 33
Introduction 34
Using the Python threading module 35
How to define a thread 35
How to determine the current thread 37
How to use a thread in a subclass 39
Thread synchronization with Lock and RLock