From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b4b864fa2b61bbba X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 10 Nov 2007 18:11:57 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Parallel Text Corpus Processing with Ada? References: <1194735959.240323.38210@v2g2000hsf.googlegroups.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Sat, 10 Nov 2007 18:11:57 -0600 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 24.4.252.232 X-Trace: sv3-NJCW3TjhhV1zL6+haKfMMOCLbzEMEqVqPdHv5iEGp5YuAFMSKGOuo+J74a+mW8yuBfVmaXWKqhqGNE/!HgThfd3IdNnlCJ/aNrVUMkPog/1MDrG1Ulzt1PbjbOq9rXASPvvUPuPApuuHxmGoLJqyP/d4I+gj!DNh+nTKzn+Jp2gKBw8VWNKEW523d X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Xref: g2news1.google.com comp.lang.ada:18259 Date: 2007-11-10T18:11:57-06:00 List-Id: > E.g., one could imagine a parallel grep. A year or something ago I tried a parallel word counter and as I recall it ran pleasing faster on a dual-core than a single-core CPU. It had a subroutine that accepted a buffer load of text updated a count parameter. So parallelizing just consisted in making more than one counter task, then having the read task give each a buffer load in turn, and after all was done, harvesting the several counts. Of course there was also a bit of special handling for words that were split across buffer loads, but for a decent size buffer that took an inconsequential amount of time. So yes, there are lots of opportunities to utility multiple cpus using very simple Ada tasking.