Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   Re: Recommendations for Lightweight Threading? (http://www.velocityreviews.com/forums/t947139-re-recommendations-for-lightweight-threading.html)

Lew 06-15-2012 10:57 PM

Re: Recommendations for Lightweight Threading?
 
Aaron W. Hsu wrote:
> I am considering moving one of my projects from C to Java, but I am
> hoping to find a high-performance threading implementation, or something
> along the lines of libqthread, which offers Fill-Empty bit blocking and
> good cooperative lightweight threading as a library.
>
> Is there a current "best" solution when doing many threaded programs in
> Java? By many threads I mean many more than the cores or machines on the
> network. Something that scales up efficiently to distributed computing
> would be nice as well.


Yes.

The Java standard API sports the 'java.util.concurrent' package (and related)
<http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/package-frame.html>

Multi-threading is built into the very language. Even normal "synchronized"
blocks perform well under many typical circumstances.

I don't know what "Fill-Empty bit blocking" is, but if you give up looking for
specific idioms and specify the strategic goals, you'll find what you need in
Java.

As to which combination of the API calls will be "best" for you, that depends
entirely on your needs. Different parts are "best" for different use cases.

So the question is, something that scales *what* up efficiently would be nice
for you?

--
Lew


All times are GMT. The time now is 05:09 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57