Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Object Oriented Programing - Chapter 23: Multithreading

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

In chapter 23 you will learn: What threads are and why they are useful, how threads enable you to manage concurrent activities, the life cycle of a thread, thread priorities and scheduling, to create and execute runnables, thread synchronization, what producer/consumer relationships are and how they are implemented with multithreading. | 23 Multithreading The most general definition of beauty Multeity in Unity. Samuel Taylor Coleridge Do not block the way of inquiry. Charles Sanders Peirce A person with one watch knows what time it is; a person with two watches is never sure. Proverb Learn to labor and to wait. Henry Wadsworth Longfellow The world is moving so fast these days that the man who says it can’t be done is generally interrupted by someone doing it. Elbert Hubbard OBJECTIVES In this chapter you will learn: What threads are and why they are useful. How threads enable you to manage concurrent activities. The life cycle of a thread. Thread priorities and scheduling. To create and execute Runnables. Thread synchronization. What producer/consumer relationships are and how they are implemented with multithreading. To enable multiple threads to update Swing GUI components in a thread-safe manner. About interfaces Callable and Future, which you can use with threading to execute tasks that return . | 23 Multithreading The most general definition of beauty Multeity in Unity. Samuel Taylor Coleridge Do not block the way of inquiry. Charles Sanders Peirce A person with one watch knows what time it is; a person with two watches is never sure. Proverb Learn to labor and to wait. Henry Wadsworth Longfellow The world is moving so fast these days that the man who says it can’t be done is generally interrupted by someone doing it. Elbert Hubbard OBJECTIVES In this chapter you will learn: What threads are and why they are useful. How threads enable you to manage concurrent activities. The life cycle of a thread. Thread priorities and scheduling. To create and execute Runnables. Thread synchronization. What producer/consumer relationships are and how they are implemented with multithreading. To enable multiple threads to update Swing GUI components in a thread-safe manner. About interfaces Callable and Future, which you can use with threading to execute tasks that return results. 23.1 Introduction 23.2 Thread States: Life Cycle of a Thread 23.3 Thread Priorities and Thread Scheduling 23.4 Creating and Executing Threads 23.4.1 Runnables and the Thread Class 23.4.2 Thread Management with the Executor Framework 23.5 Thread Synchronization 23.6 Producer/Consumer Relationship without Synchronization 23.5.1 Unsynchronized Data Sharing 23.5.2 Synchronized Data Sharing—Making Operations Atomic 23.7 Producer/Consumer Relationship: ArrayBlockingQueue 23.8 Producer/Consumer Relationship with Synchronization 23.9 Producer/Consumer Relationship: Bounded Buffers 23.10 Producer/Consumer Relationship: The Lock and Condition Interfaces 23.11 Multithreading with GUI 23.12 Other Classes and Interfaces in java.util.concurrent 23.11.1 Performing Computations in a Worker Thread 23.11.2 Processing Intermediate Results wit SwingWorker 23.13 Wrap-Up 23.1 Introduction The human body performs a great variety of operations in parallel—or concurrently Computers, too, can .