Blocking for I/O A running thread, on executing a blocking operation requiring a resource (like a call to an I/O… Read more
Category: Creating Regular Directories
Deprecated Thread Methods – Concurrency: Part I
Deprecated Thread Methods There are a few operations defined by the Thread class that are not recommended for use and… Read more
Searching for Directory Entries – Java I/O: Part II
Searching for Directory Entries The find() method of the Files class can be used for searching or finding directory entries… Read more
Understanding Concurrency and Parallelism – Concurrency: Part I
Understanding Concurrency and Parallelism There is an important distinction between the concept of parallelism and concurrency when it comes to… Read more
Directory Hierarchy Traversal – Java I/O: Part II
Directory Hierarchy Traversal Tree traversal is an important topic in computer science. Other synonyms used in the literature for traversing… 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
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
Thread Scheduler – Concurrency: Part I
Thread Scheduler Schedulers in JVM implementations usually employ one of the following two strategies, which come into play in the… Read more
Reading Text Lines Using a Functional Stream – Java I/O: Part II
Reading Text Lines Using a Functional Stream The lines() method of the Files class creates a stream that can be… Read more
Synchronized Statements – Concurrency: Part I
Synchronized Statements Whereas execution of synchronized methods of an object is synchronized on the lock of the object, the synchronized… Read more