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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dd6489250ee6bc95,start X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-lei1.dfn.de!news.uni-jena.de!not-for-mail From: Adrian Knoth Newsgroups: comp.lang.ada Subject: Poor tasking performance Date: 19 Jun 2004 07:38:56 GMT Organization: loris.TV Message-ID: NNTP-Posting-Host: ppc201.mipool.uni-jena.de X-Trace: fsuj29.rz.uni-jena.de 1087630736 32279 141.35.13.101 (19 Jun 2004 07:38:56 GMT) X-Complaints-To: news@rz.uni-jena.de NNTP-Posting-Date: 19 Jun 2004 07:38:56 GMT User-Agent: slrn/0.9.8.0 (Linux) Xref: g2news1.google.com comp.lang.ada:1683 Date: 2004-06-19T07:38:56+00:00 List-Id: Hi, I wrote a small proof-of-concept-algorithm which should be implemented in assembler for a DSP-based hardware solution. Actually it uses blocking file IO to read and write data from/to named pipes. (read input data, calculate it, write output data. rate is defined by the external reading process). More or less fine, 6% CPU consumption. Yesterday I expanded the program by a commandline frontend to interactively changing values (coeffs for the calculation). Therefore I defined the old serial calculation job as a (one) task and the user interface as another (the program only has two tasks). While the calculation "always" runs the user interface shows a prompt and waits for the completion of Get_Line. When the user terminates his statement by enter his inputline is parsed and internal variables are changed accordingly. Nothing spectacular. In general, it's all the same. Result: 18% CPU. Is that normal? Only by adding one task which hangs in Get_Line increases the load so much? Environment is Linux 2.6.7 with Debian gcc-3.3 (unstable). -- mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver Morgenstund hat Gold im Mund, und Gold im Mund ist ungesund