- 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
推薦閱讀
- Instant Node Package Manager
- C程序設計簡明教程(第二版)
- R語言經典實例(原書第2版)
- C#程序設計教程
- The DevOps 2.4 Toolkit
- Linux命令行與shell腳本編程大全(第4版)
- Instant Lucene.NET
- Java程序設計案例教程
- Java EE Web應用開發基礎
- Drupal 8 Development:Beginner's Guide(Second Edition)
- TypeScript圖形渲染實戰:2D架構設計與實現
- Swift High Performance
- Learning Cocos2d-JS Game Development
- Cinder:Begin Creative Coding
- Java Web 從入門到項目實踐(超值版)