Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16890
| From | "Patricia Shanahan" <patricia.shanahan@1:261/38.remove-x1c-this> |
|---|---|
| Subject | Re: How can you make idle processors pick up java work? |
| Message-ID | <50182C83.55858.calajapr@time.synchro.net> (permalink) |
| Newsgroups | comp.lang.java.programmer |
| References | <50182C82.55852.calajapr@time.synchro.net> |
| Date | 2012-07-31 20:07 +0000 |
| Organization | tds.net |
To: qwertmonkey From: "Patricia Shanahan" <patricia.shanahan@1:261/38.remove-dpk-this> To: qwertmonkey From: Patricia Shanahan <pats@acm.org> 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 -+- BBBS/Li6 v4.10 Dada-1 + Origin: Prism bbs (1:261/38) -+- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
How can you make idle processors pick up java work? "qwertmonkey" <qwertmonkey@1:261/38.remove-x1c-this> - 2012-07-31 20:07 +0000 Re: How can you make idle processors pick up java work? "Joerg Meier" <joerg.meier@1:261/38.remove-x1c-this> - 2012-07-31 20:07 +0000 Re: How can you make idle processors pick up java work? "Joshua Cranmer" <joshua.cranmer@1:261/38.remove-x1c-this> - 2012-07-31 20:07 +0000 Re: How can you make idle processors pick up java work? "Patricia Shanahan" <patricia.shanahan@1:261/38.remove-x1c-this> - 2012-07-31 20:07 +0000
csiph-web