Java Reference
In-Depth Information
“Quasar is a library that adds true lightweight threads to the JVM. Lightweight threads, or
fibers, are like regular threads, except they consume far less resources, and are able to task-
switch much faster than plain Java (OS) threads. You can easily have hundreds of thousands, or
even millions of running fibers on one JVM instance.
“What are fibers good for? They allow you to enjoy the performance and scalability (across
cores) of asynchronous, callback based, code, while keeping the natural, simple and intuitive
blocking style of threaded code. Quasar includes various constructs for inter-fiber communica-
tion, including channels for CSP-style programming (just like those in the Go language). On top
of this core, Quasar provides a full Erlang-like actor system, complete with behaviors, supervi-
sors and selective receive, as well as distribution across a cluster.
“Quasar also has a Clojure API, called Pulsar, that closely mimics Erlang functionality.”
— Parallel Universe Blog http://blog.paralleluniverse.co/2014/01/22/
introducing-comsat/
[ 61 ] JSR stands for Java Specification Request. The Java Community Process calls standards, both pro-
posed and adopted, JSRs. See http://www.jcp.org for details.
[ 62 ] The title belies some unfulfilled ambitions to make the animations follow the bouncing curves seen
in some flashier animation demonstrations.
[ 63 ] A servlet is a low-level server-side API for interacting with remote clients; today it would probably
be written in the form of a JavaServer Faces (JSF) handler.
 
 
 
Search WWH ::




Custom Search