Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: Recommendations for Lightweight Threading? Date: Sat, 16 Jun 2012 04:03:05 +0200 Organization: Netfront http://www.netfront.net/ Lines: 39 Message-ID: References: NNTP-Posting-Host: 77.176.243.96 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1339812183 34879 77.176.243.96 (16 Jun 2012 02:03:03 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sat, 16 Jun 2012 02:03:03 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:15321 In article , arcfide@sacrideo.us says... > > 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. For a local solution java.util.concurrent may be sufficient. If you want go go for distributed computing however, you might want to look at Gigaspaces/OpenSpaces which should scale very well, as it follows the rather simple tuple-spaces paradigm. Or you may use a clustering solution built from stateless session beans running on the JBoss application server. The latter will be probably the more common solution, but I think Gigaspaces looks much more elegant. Both solutions for clustering do all the load balancing and network communication for you, plus they offer some persistence and transaction management. > http://www.gigaspaces.com/wiki/display/XAP8/Writing+Your+First+XTP+App lication < Kind regards, Wanja -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---