Skip to main content

Posts

Showing posts with the label Concurrency Control

JAVA : W1-M9

Threads & Concurrency Control Learning Objective Threads & Concurrency Control Orientation Video Introduction A thread is a program's path of execution. Most programs written today run as a single thread, causing problems when multiple events or actions need to occur at the same time. Let's say, for example, a program is not capable of drawing pictures while reading keystrokes. The program must give its full attention to the keyboard input lacking the ability to handle more than one event at a time. The ideal solution to this problem is the seamless execution of two or more sections of a program at the same time. Threads allows us to do this. Threads can be created in two ways: The first method of creating a thread is to simply extend from the Thread class. Do this only if the class you need executed as a thread does not ever need to be...