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


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

Re: How can you make idle processors pick up java work?

Date 2012-07-31 06:33 -0700
From Patricia Shanahan <pats@acm.org>
Newsgroups comp.lang.java.programmer
Subject Re: How can you make idle processors pick up java work?
References <jv80k4$9kk$1@speranza.aioe.org>
Message-ID <c_idnTmcjekFQ4rNnZ2dnUVZ_hGdnZ2d@earthlink.com> (permalink)

Show all headers | View raw


On 7/31/2012 12:14 AM, qwertmonkey@syberianoutpost.ru wrote:
...
>   I don't think this would make sense. All sentences are short and all I
> need to do is basically scan them and use look-up tables to do some tinkering
> with the code points. The scheduling of threads and constant context switching
> will most probably make things slower

What context switching? This started out as a question about spare
processors sitting idle while there is work to do.

Step 1 is to decide whether this workload is CPU bound or I/O bound. I
assumed CPU bound because of the initial question about idle processors,
but now it sounds as though the processing is trivial so the workload
may be I/O bound.

If it is I/O bound you may not need more than one thread, but maybe
should be looking at using non-blocking I/O to manage your own prefetches.

Patricia

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


Thread

How can you make idle processors pick up java work? qwertmonkey@syberianoutpost.ru - 2012-07-31 07:14 +0000
  Re: How can you make idle processors pick up java work? Joerg Meier <joergmmeier@arcor.de> - 2012-07-31 12:13 +0200
  Re: How can you make idle processors pick up java work? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-07-31 07:41 -0400
  Re: How can you make idle processors pick up java work? Patricia Shanahan <pats@acm.org> - 2012-07-31 06:33 -0700

csiph-web