- Parallel Programming with Python
- Jan Palach
- 125字
- 2021-07-16 11:22:18
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "In order to exemplify the use of the multiprocessing.Pipe
object, we will implement a Python program that creates two processes, A and B."
A block of code is set as follows:
def producer_task(conn): value = random.randint(1, 10) conn.send(value) print('Value [%d] sent by PID [%d]' % (value, os.getpid())) conn.close()
Any command-line input or output is written as follows:
$celery –A tasks –Q sqrt_queue,fibo_queue,webcrawler_queue worker --loglevel=info
推薦閱讀
- Qt 5 and OpenCV 4 Computer Vision Projects
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Java范例大全
- C語(yǔ)言程序設(shè)計(jì)(第3版)
- 劍指Offer(專項(xiàng)突破版):數(shù)據(jù)結(jié)構(gòu)與算法名企面試題精講
- Web Scraping with Python
- Python Tools for Visual Studio
- Implementing Cisco Networking Solutions
- Java EE 7 Performance Tuning and Optimization
- Tableau 10 Bootcamp
- C語(yǔ)言開(kāi)發(fā)基礎(chǔ)教程(Dev-C++)(第2版)
- Windows Phone 8 Game Development
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)(第二版)
- Docker:容器與容器云(第2版)
- C語(yǔ)言程序設(shè)計(jì)教程