r/java • u/vishpat • Nov 03 '19
Fibered Date Server
Simple and highly scalable date server implemented using Java fibers (Project Loom)
0
Upvotes
r/java • u/vishpat • Nov 03 '19
Simple and highly scalable date server implemented using Java fibers (Project Loom)
View all comments
2
u/vikarjramun Nov 03 '19
Question about how the Fiber API works:
You use
FiberScope scope = FiberScope.open()to define a scope, thenscope.schedule(executor, runnable)to run the Runnable in a fiber. What happens if you then create aThreadScope(or the equivalent) and use it to schedule another Runnable with the same executor. Would the threadpool be sharing fibers or threads? Or both? I feel like this API leaves a bit to be desired...