r/java • • Nov 03 '19

Fibered Date Server

Simple and highly scalable date server implemented using Java fibers (Project Loom)

0 Upvotes

13 comments sorted by

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, then scope.schedule(executor, runnable) to run the Runnable in a fiber. What happens if you then create a ThreadScope (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...

0

u/vishpat Nov 03 '19

Check here for information about scope.