Programming Study日本語

Disclosure: We earn a commission from Udemy when you buy a course through links on this page.

Java Multithreading & Concurrency: Virtual Threads, Java 27

Java Multithreading & Concurrency: Virtual Threads, Java 27

Udemy · English

About this course

Language
English
Category
Provider
Udemy
Data updated

Ten threads each add one to a shared counter 100,000 times, the program prints 136,405 instead of 1,000,000, and nothing reports an error. This Java multithreading course explains that result and others like it, from your first thread to virtual threads and structured concurrency on Java 27, with more than 250 small programs to try yourself.A bug in threaded code often looks like that one: every line ran as written, and the answer is wrong. Another program in the course contains a deadlock and still passed 200 runs in a row, so tests alone do not find these bugs. If you can start a thread but cannot say why that total is wrong, or you watched thread tutorials and remembered little, this Java concurrency course was written for you. The route, in four stepsOne thread becomes several. Start threads with Thread and Runnable, explain start versus run, and control them with sleep, join and interrupt. What goes wrong when threads share. Fix a race condition with synchronized, coordinate threads with wait and notifyAll, read a deadlock in a jstack thread dump, and prevent it with one lock order. Java's own tools. Run work on ExecutorService thread pools, collect results with Callable and Future, and share data with ConcurrentHashMap, AtomicInteger and BlockingQueue. Modern Java. Start a million virtual threads, then group tasks in a StructuredTaskScope so that they succeed or fail together, and share a value with ScopedValue. How each lecture worksAfter the short Start Here section, each lecture opens on a real run, often a wrong total, a hang, or a program that exits before its work is done. Before a program runs, you predict the result while a small clock ticks. A wrong guess shows which picture in your head needs fixing. The video is narrated…

Courses in the same category