Notified Invoking the notify() method on an object wakes up a single thread that is waiting for the lock of… Read more
Category: Walking the Directory Hierarchy
Joining – Concurrency: Part I
Joining A thread can invoke the overloaded method join() (from the Thread class) on another thread in order to wait… Read more
Threads and Concurrency – Concurrency: Part I
22.1 Threads and Concurrency We first look at some basic concepts before diving into multithreaded programming in Java. Multitasking Multitasking… Read more
Blocking for I/O – Concurrency: Part I
Blocking for I/O A running thread, on executing a blocking operation requiring a resource (like a call to an I/O… Read more
Copying an Entire Directory – Java I/O: Part II
Copying an Entire Directory The Files.copy() method only copies a single file or creates an empty directory at its destination,… Read more
Runtime Organization for Thread Execution – Concurrency: Part I
22.2 Runtime Organization for Thread Execution Most JVM implementations run as a single process, but allow multiple threads to be… Read more
Types of Threads – Concurrency: Part I
Types of Threads The runtime environment distinguishes between normal threads (also called user threads) and daemon threads. As long as… Read more
Thread States – Concurrency: Part I
Thread States Understanding the lifecycle of a thread can be beneficial when programming with threads. Threads can exist in different… Read more
Thread Priorities – Concurrency: Part I
Thread Priorities Threads are assigned priorities that the thread scheduler can use to determine how the threads will be scheduled…. Read more
Reentrant Synchronization – Concurrency: Part I
Reentrant Synchronization While a thread is inside a synchronized method of an object, all other threads that wish to execute… Read more