Chapter 12

Concurrency Using Threads

  • 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 ...

Get JAVA Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.