Advertisement

Multi-threaded Programs

  • Quentin Charatan
  • Aaron Kans
Chapter
Part of the Texts in Computer Science book series (TCS)

Abstract

Outcomes:

By the end of this chapter students should be able to:

  • explain how concurrency is achieved by means of time-slicing;

  • distinguish between threads and processes;

  • implement threads in Java;

  • explain the difference between asynchronous and synchronized thread execution;

  • explain the terms critical section and mutual exclusion, and describe how Java programs can be made to implement these concepts;

  • explain how busy waiting can be avoided in Java programs;

  • provide a state transition diagram to illustrate the thread life-cycle;

  • describe how the javafx.concurrent package is used to produce multithreaded JavaFX applications;

  • use the Task class and the Service class from the above package in JavaFX applications;

  • use the above classes to create animated applications in JavaFX.

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.University of East LondonLondonUK

Personalised recommendations