Institute of Computer Science
Courses.cs.ut.ee Institute of Computer Science University of Tartu
  1. Courses
  2. 2018/19 spring
  3. Object-Oriented Programming (Narva College) (LTAT.NR.003)
ET
Log in

Object-Oriented Programming (Narva College) 2018/19 spring

  • Home
  • Materials
  • Java Glossary
  • Source Example
  • Cheat sheet (S1-S6)
  • Grading
  • Links

Before session 12

Threads

Objectives:

After completing the session, a student can:

  • explain the main concepts of multithreading;
  • develop task classes by implementing Runnable interface;
  • create threads to run tasks using Thread class;
  • control threads using the methods of Thread class;
  • use synchronized methods or blocks to synchronize threads to avoid race conditions;
  • use blocking queues to synchronize access to a queue.

Topics

  • 12.1 Thread concepts
  • 12.2 Creating tasks and threads
  • 12.3 Class Thread
  • 12.4 Race condition
  • 12.5 Synchronization of threads
  • 12.6 Cooperation among threads
  • 12.7 Tasks

Alternative materials

  • in English: H. Schildt.‎ Java - The Complete Reference: Chapter: 11
  • in Estonian: here
  • in Russian: Г. Шилдт. Java 8. Полное руководство: Chapter: 11

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment