Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
전문가를 위한 파이썬(2판)
by
루시아누 하말류
,
강권학
November 2024
Beginner to intermediate
1064 pages
25h 21m
Korean
Hanbit Media, Inc.
Content preview from
전문가를 위한 파이썬(2판)
839
20
장
동시 실행자
NOTE
flags_threadpool_futures.py
를 직접 실행해 보기 바란다. 여러 번 실행하면 결과 순서가 달
라지는 것을 볼 수 있다.
max_workers
를
5
로 설정하면 결과 순서가 더욱 다양하게 달라지며,
1
로 설정하면
코드가 순차적으로 실행되므로 언제나
submit()
을 호출한 순서와 동일한 결과가 나온다.
ThreadPoolExecutor.map(
)
을 사용하는 [예제
20
-
3
]과
futures.as_completed(
)
를 사용
하는 [예제
20
-
4
]에서
concurrent.futures
를 사용하는 두 가지 버전의 내려받기 스크립트
를 살펴보았다.
flags_asyncio.py
코드가 궁금하면
21
장에 있는 [예제
21
-
3
]을 살짝 들여다
봐도 좋다.
이제
concurrent.futures
를 이용해
CPU
위주의 작업에서
GIL
문제를 피해 가는 간단한 방
법을 알아보자.
20
.
3
concurrent
.
futures
로 프로세스 실행하기
concurrent.futures
문서 페이지
(
https://fpy.li/20-8
)
의 부제목은 ‘병렬 작업의 실행
Launching
parallel
tasks
’이다. 이 패키지는
ProcessPoolExecutor
클래스를 사용해 작업을 여러 파이
썬 프로세스에 분산하게 해 주므로,
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
전문가를 위한 리액트
테자스 쿠마르
데이터로 전문가처럼 말하기
칼 올친
개발자를 위한 머신러닝&딥러닝
로런스 모로니
고성능 파이썬(2판)
오현석, 미샤 고렐릭, 이안 오스발트
Publisher Resources
ISBN: 9791169211772