Concurrent Score Generation and Sorting Using Runnable and TreeSet in Java
Environment: Windows 11, JDK 17
1. POJO – ExamScoreRecord
import java.math.BigDecimal;
import java.util.Date;
public class ExamScoreRecord implements Comparable<ExamScoreRecord> {
private Integer id;
private Integer studentId;
private Integer academicYear;
private BigDecimal languageScore;
private BigDecimal mathScore;
private BigDecimal ...
Posted on Fri, 15 May 2026 18:15:16 +0000 by sullyman
Java Concurrency: Exploring Task Execution with Runnable, Future, FutureTask, and Thread States
Understanding Task Execution Interfaces in Java Concurrency
Java provides a robust set of interfaces and classes for managing concurrent tasks. At the core of asynchronous task execution are Runnable, Future, and FutureTask, each serving a distinct purpose in defining and managing computational units.
Key Concurrency Primitives: Runnable, Futu ...
Posted on Tue, 12 May 2026 19:59:55 +0000 by thinkgfx
Understanding the Single Fundamental Method for Creating Threads in Java
In this section, we will explore why it is fundamentally accurate to say there is only one way to create threads. We will also examine the advantages of implementing the Runnable interface over extending the Thread class.
Creating threads is a fundamental aspect of concurrent programming, as we must first implement multithreading before proceed ...
Posted on Fri, 08 May 2026 12:05:20 +0000 by wdallman
Java Multithreading Fundamentals and Implementation Approaches
Modern operating systems enable concurrent execution of multiple tasks through process management. A process represents an executing program with its own memory space, and the system allocates CPU time slices to each process, allowing them to execute in rotation.
Within each process, threads serve as independent execution paths. A single proces ...
Posted on Thu, 07 May 2026 20:08:17 +0000 by mogster