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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6b04e1f282b54838,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e11g2000yqo.googlegroups.com!not-for-mail From: Tomek Walkuski Newsgroups: comp.lang.ada Subject: "Best practises" in communicating with serial ports Date: Fri, 31 Jul 2009 09:15:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2243884b-1d8b-4899-98ca-6f8af5661488@e11g2000yqo.googlegroups.com> NNTP-Posting-Host: 83.5.153.88 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1249056903 24075 127.0.0.1 (31 Jul 2009 16:15:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 31 Jul 2009 16:15:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e11g2000yqo.googlegroups.com; posting-host=83.5.153.88; posting-account=Ar5oKAoAAAD4cyp5eTv5CtR88dGtUxxC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.1.1) Gecko/20090717 Fedora/3.5.1-1.fc11 Firefox/3.5.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7491 Date: 2009-07-31T09:15:03-07:00 List-Id: What is the best way to communicate with multiple serial ports? Two tasks for each port (one for reading, second for writing)? Port descriptor guarded in some manner (protected object?) from simultaneous access? Thanks in advance.