Multicore Programming with JavaLaajuus (3 ECTS)
Course unit code: TX00EL43
General information
- Credits
- 3 ECTS
Objective
Knowledge and understanding:
Today, multicore/multiprocessor hardware platforms are widespread used in all ICT domains, including smartphones, automotive, computer vision, and many others. Multicore programming is the key enablers for performance scaling in compute-intensive applications.
The students will know the concept of multicore programming with Java. They will know the concurrency related problems, like race conditions and visibility constraints and their consequences. They have an understanding how these problems can be avoided or solved. They know low-level and high-level synchronization concepts and their application.
Further they know the modern parallelization frameworks of Java, like ForkJoin, parallel Streams or CompletableFuture and understand their internal working mechanisms.
Skills:
The students are able to design and write multicore programs and apply concepts, like synchronization and threadpools. They can design and implement solutions like data or task parallelism. For concrete problems they can decide which parallelization concepts are best suited. They can apply parallelization frameworks to speed up program execution.
Content
Introduction
Concept of Threads
Low-level synchronization concepts
- Synchronized, wait, notify, notifyAll, Locks, Atomics
Java Memory Model
Executors and Futures
High-level synchronization concepts
- CountDownLatch, CyclicBarrier, Phaser
Concurrent Data Structures
Concurrency Patterns
Frameworks for Parallelisation
- Fork-Join-Framework
- Parallel Streams (data parallelism)
- CompletableFuture (task parallelism)
- Reactive Streams (event parallelism)
Case Studies
Qualifications
Good Java skills. Basic mathematics, especially vector and matrix operations.
Assessment criteria, approved/failed
Students actively work on the daily exercises assigned on the course. At the end of the course the examination is divided into two parts: a short written exam (30 min) and practical programming exercises (90 min).
Further information
Intensive course with hands-on exercises on paper and with the computer. A computer with a Java 11 (or higher) development environment is required.