O'Reilly logo

JAVA Programming by K. Rajkumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12

Concurrency Using Threads

OBJECTIVES
  • To explain process, multitasking, thread and multithreading
  • To differentiate sequential execution and threaded execution
  • To introduce thread creation ways: Thread and Runnable
  • To explain variables inside local cache and master copy at main memory for threads
  • To instantiate thread and start a thread
  • To make thread to sleep
  • To make thread to yield control to another threads
  • To find the sum of an array using two threads
  • To suspend calling thread using join
  • To create daemon threads and explain its life
  • To introduce thread priority and also its three constants
  • To explain the importance of Runnable interface
  • To synchronize threads for resource sharing using synchronized methods
  • To introduce synchronized ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required