JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Introduction to Parallelism

    JAVA 25 SELF
    54 level,0 lecture
    In this lecture we unpack the difference between multithreading and parallelism: where responsiveness matters, and where real speed-up across multiple cores matters. We will discuss creating threads via Thread, implementing Runnable, and high-level pools with ExecutorService; look at a simple array-summing example; examine when parallelism helps and when it hurts; and cover typical issues: data races, synchronization with synchronized, deadlocks, and load balancing. We finish with a comparison table and scenario visualizations.
    Open
  • ExecutorService, Callable, Future: running tasks

    JAVA 25 SELF
    54 level,1 lecture
    Serious multithreading practice: pass tasks to ExecutorService instead of manually creating a Thread, and manage the pool, the queue, and the lifecycle ( shutdown(), shutdownNow()). We’ll go over the difference between Runnable and Callable<T>, get results via Future and its methods ( get(), isDone(), cancel(...), isCancelled()). We’ll show running multiple tasks, invokeAll/ invokeAny, handling ExecutionException, and common mistakes.
    Open
  • Parallel streams: syntax and usage

    JAVA 25 SELF
    54 level,2 lecture
    Let’s figure out how to switch a regular data stream to parallel processing in one line—via parallelStream() or .parallel(), what happens under the hood in ForkJoinPool.commonPool(), when parallelism actually speeds up computations (large collections, “heavy” operations), and where it can slow things down. We’ll show examples of filtering, aggregation, sorting, performance measurement, and break down typical mistakes: side effects in forEach, preserving order, choosing collections, and tuning the degree of parallelism.
    Open
  • ForkJoinPool and RecursiveTask: recursive tasks

    JAVA 25 SELF
    54 level,3 lecture
    A practical guide to parallel computation in Java: how the ForkJoinPool task pool and recursive tasks RecursiveTask<T>/ RecursiveAction work, why the work-stealing algorithm is useful, how to split tasks via fork() and merge results with join() inside compute(). We will cover running via pool.invoke(), an example of summing an array and finding a maximum, the role of ForkJoinPool in parallelStream(), as well as typical mistakes and how to avoid them.
    Open
  • Best practices for parallel programming

    JAVA 25 SELF
    54 level,4 lecture
    A practical guide to parallel programming in Java: when to use ExecutorService, where parallelStream helps, and what tasks need ForkJoinPool. We will discuss thread safety with ConcurrentHashMap/ CopyOnWriteArrayList and atomic classes ( AtomicInteger), performance measurements with System.nanoTime() and JMH, error handling from Future.get() and ForkJoinTask, proper reactions to InterruptedException, as well as logging techniques ( Thread.currentThread().getName()) and testing ( Awaitility). At the end—an instrument selection table and common mistakes.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy