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
안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기
by
한대희
,
안데르스 예란손
April 2016
Beginner to intermediate
308 pages
7h 21m
Korean
Hanbit Media, Inc.
Content preview from
안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기
215
10
장
-
AsyncTask로 백그라운드 태스크를 UI 스레드에 묶기
|
targetSdkVersion
>
=
13
|
execute
는
API
레벨
13
이상인 플랫폼에서 순차 실행을 한다.
※
CAUTION
_
execute
의 실행 동작은 플랫폼의
API
레벨과 응용프로그램의 매니페스트
Manifest
파일 내의
targetSdkVersion
에 따라 달라진다.
모든 플랫폼 버전에서 응용프로그램의 일관된 실행 동작을 원한다면
targetSdkVersion
을 설
정하여 처리해야 한다.
API
레벨
13
까지
AsyncTask
를 사용하는 모든 플랫폼 버전에서 순차적인 실행을 이루는 것은 불
가능하다.
3
모든 플랫폼 버전에서의 동시 실행은 플랫폼 버전에 따라
targetSdkVersion
<
13
+
로 설정하거나 실행자를 직접 변경해야 가능하다.
| 일관된 순차 실행 |
execute
는 동시에 실행하고,
executeOnExecutor
는
API
레벨
11
이전에는 사용할 수 없으므
로
AsyncTask
인스턴스의 순차 실행은
API
레벨
4
~
10
에서는 보장될 수 없다. 대신 일관된 순
차 실행을 요구하는 백그라운드 태스크는
Executors
.
newSingleThreadExecutor
(
9
장) 또는
HandlerThread
(
8
장)를 사용해야 한다.
| 일관된 동시 실행 |
targetSdkVersion ...
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
코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법
강재준
머신러닝을 위한 실전 데이터셋: 개인 정보를 보호하고 머신러닝 학습에 사용할 합성 데이터 만들기
심상진, 칼리드 엘 에맘, 루시 모스케라, 리처드 홉트로프
파이썬을 활용한 머신러닝 쿡북: 전처리에서 딥러닝까지, 판다스와 사이킷런 중심의 실전 문제 해결 200선
박해선, 크리스 알본
컨테이너 보안: 컨테이너화된 응용 프로그램의 보안을 위한 개념, 이론, 대응법과 모범 관행까지
류광, 리즈 라이스
Publisher Resources
ISBN: 9788968481703