The most general definition of beauty. . .Multeity in Unity. Samuel Taylor Coleridge
The most general definition of beauty. . .Multeity in Unity.
Samuel Taylor Coleridge
Learn to labor and to wait. Henry Wadsworth Longfellow
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
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
Do not block the way of inquiry. Charles Sanders Peirce
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
A person with one watch knows what time it is; a person with two watches is never sure.
Proverb
In this chapter you will learn:
What threads are and why they are useful.
How threads enable you to implement and manage concurrent activities.
The life cycle of a thread.
Thread priorities and scheduling.
To create and execute Threads.
Thread synchronization.
What producer/consumer relationships are and how they are implemented with multithreading.
To ensure that the User Interface thread performs all GUI modifications that are initiated by other threads in a Windows application.
Outline
15.1 Introduction
15.2 Thread States: Life Cycle of a Thread
15.3 Thread Priorities and Thread Scheduling
15.4 Creating and Executing Threads
15.5 Thread Synchronization and Class Monitor
15.6 Producer/Consumer Relationship without Thread Synchronization
15.7 Producer/Consumer Relationship with Thread Synchronization
15.8 Producer/Consumer Relationship: Circular Buffer
15.9 Multithreading with GUIs
15.10 Wrap-Up