Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13565

Re: Pattern suggestion

Path csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Pattern suggestion
Date Mon, 16 Apr 2012 00:37:44 +0200
Organization albasani.net
Lines 38
Message-ID <jmfijo$3t8$1@news.albasani.net> (permalink)
References <jmel0t$jrh$1@news2.carnet.hr> <jmeq76$f72$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net 1eyim3tH76QYURXh/W6pVuZw5IqzCp4Q5meS/phhJwON/JyNR8YsN1199+Bc5GYAyjow/ZUnwW6Ggz3tpc5y3qV4Zwwb3jgpxeBnhleSJUtNT0ZjtKTUxtltV0QObE50
NNTP-Posting-Date Sun, 15 Apr 2012 22:37:44 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="E3DYxyGCWnnYegsFO4A6n4iJPc/IDy7yp+nuA7NadNsHrir4OwoP/0z2ddLALA4awbTk4yB1rxS+xD0YELIP8hN6l9AKRHgn/29vjga1aVX3ePZ3w92WY8XyLztWsXrt"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120312 Firefox/11.0 SeaMonkey/2.8
In-Reply-To <jmeq76$f72$1@news.albasani.net>
Cancel-Lock sha1:tFcZuDKMs1AG2UXd5EWHei1R/PI=
Xref csiph.com comp.lang.java.programmer:13565

Show key headers only | View raw


Jan Burse schrieb:
>
> - Check whether the analysers are all equally fast,
>    otherwise the least performant analyser will
>    delay the processing, even with some queues,
>    since they will be limited in size.

Assume you have 2 analyzers, one slow and one
fast. And 4 cores.

Load junks of 1GB into memory, split the 1GB into
two 500MB. And let:

    1st 500MB slow analyzer with core 1 affinity
    2nd 500MB slow analyzer with core 2 affinity
    1GB fast analyzer with core 3 affinity

Or let the 2nd slow analyer start at 5GB from the
beginning.

Bye

BTW: Last time I looked at shootout:
http://shootout.alioth.debian.org/

many of the problems now have parallel
implementations. The test maschine is 4 core.
If you do a little calculation for the Java
results, you will see that they have an average
core  utilization of a factor of 2.6, similar
to the Erlang results.

Maybe you can pick up some ideas of how to
code parallel solutions from there. Otherwise
there is a nice book by Doug Lea:

Concurrent Programming in Java™: Design Principles and Pattern
http://www.amazon.com/Concurrent-Programming-Java-Principles-Pattern/dp/0201310090

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Pattern suggestion FrenKy <frenky__nn@gmail.com> - 2012-04-15 16:11 +0200
  Re: Pattern suggestion Rui Maciel <rui.maciel@gmail.com> - 2012-04-15 16:04 +0100
    Re: Pattern suggestion Lew <noone@lewscanon.com> - 2012-04-15 08:15 -0700
  Re: Pattern suggestion markspace <-@.> - 2012-04-15 08:17 -0700
    Re: Pattern suggestion Arne Vajhøj <arne@vajhoej.dk> - 2012-04-15 22:01 -0400
  Re: Pattern suggestion Jan Burse <janburse@fastmail.fm> - 2012-04-15 17:41 +0200
    Re: Pattern suggestion Jan Burse <janburse@fastmail.fm> - 2012-04-16 00:37 +0200
  Re: Pattern suggestion Patricia Shanahan <pats@acm.org> - 2012-04-15 09:17 -0700
    Re: Pattern suggestion Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-15 13:57 -0300
      Re: Pattern suggestion Martin Gregorie <martin@address-in-sig.invalid> - 2012-04-15 19:56 +0000
        Re: Pattern suggestion Robert Klemme <shortcutter@googlemail.com> - 2012-04-16 09:55 +0200
  Re: Pattern suggestion Arne Vajhøj <arne@vajhoej.dk> - 2012-04-15 21:58 -0400

csiph-web