Webinar: Project Loom, Fibers and Blocking IO By Dr Heinz Kabutz The other day I created 10 million fibers on my new MacBook Pro. Not bad, considering that it tops out at 8192 threads. Who actually executes all these fibers? Some thread somewhere must surely run them? And what's the deal with being able to have millions of these fibers calling Thread.sleep() at the same time without the system collapsing? Java has had something similar to this concept for a long time - called the ManagedBlocker. But Project Loom takes this to a new level and injects the special code right into where it can be access by blocking IO and ReentrantLock. Thus we can now deal with a much larger set of problems than before. Many years ago I developed the Transmogrifier course, which showed how we could transform blocking IO code to non-blocking. It was hard. It took me many years of REM sleep to be able to face doing the demos without panic extending its spindly fingers around my neck. But Project Loom makes this into a no-brainer. We are doing a webinar tomorrow Thursday 6th at 16:00 UTC with the illustrious title: Project Loom, Fibers and Blocking IO Abstract: Writing concurrent code is easy. We simply start a thread, point it at a network socket and let it read and write data. But having one system level thread per socket is too heavy-weight. One alternative is Java.NIO, with non-blocking sockets. But the coding is a lot more involved, and the latency sometimes worse. In this webinar we will look into the future at what Project Loom will give us (hopefully) with the advent of fibers. We will explain what fibers are, what they can do, and what they might not be able to do. Will also demonstrate how the code would look with the new construct. Preparation: Build your own "loom" JDK, so you can follow along with the examples. Note that Project Loom is in active development, so anything we say in the webinar is subject to change. Maybe before tomorrow. The webinar is free to attend and participate in. Reserve your seat here: www.javaspecialists.eu/webinars We have recordings of all our webinars for paid subscribers. Kind regards from Crete Heinz |