- 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 Testing with CasperJS
- Spring Boot開發(fā)與測試實戰(zhàn)
- CMDB分步構(gòu)建指南
- Easy Web Development with WaveMaker
- Mastering Rust
- Linux操作系統(tǒng)基礎(chǔ)案例教程
- Java Web程序設(shè)計任務(wù)教程
- Programming with CodeIgniterMVC
- Node.js開發(fā)指南
- HTML+CSS+JavaScript網(wǎng)頁設(shè)計從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開發(fā)視頻大講堂)
- 網(wǎng)絡(luò)數(shù)據(jù)采集技術(shù):Java網(wǎng)絡(luò)爬蟲實戰(zhàn)
- 從程序員角度學(xué)習(xí)數(shù)據(jù)庫技術(shù)(藍橋杯軟件大賽培訓(xùn)教材-Java方向)
- Ext JS 4 Plugin and Extension Development
- Java從入門到精通(視頻實戰(zhàn)版)
- MongoDB Cookbook