Concurrency (Java)

From StudyWiki

Jump to: navigation, search

This page is about how Java implements concurrency. For more general information, see Concurrency

Overview

Java supports concurrency as the JVM allows an application to have multiple threads running concurrently.


The Thread, ThreadGroup, and Runnable classes implement it.


Creating Threadable Classes

New threadable classes can be created in 2 different ways:

Image:Java_concurrency.png