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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: STM32F4 Discovery, communication and libraries Date: Fri, 29 Aug 2014 09:41:58 +0200 Organization: cbb software GmbH Message-ID: <1cjwzr30b24xy.11kpydntxhfo5$.dlg@40tude.net> References: <60a42dc6-d8d0-4432-ae5a-86de18b82840@googlegroups.com> <5kkrv9hejn2qhdckkeo8lidkbh3bkme1gn@4ax.com> <5b91313c-acf9-4a6e-b157-6ba7c8021567@googlegroups.com> <0513ad07-6fbe-463a-be6f-097cd5113f52@googlegroups.com> <4f1ec65a-d66a-40bf-a0d6-278fde206e70@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: yj8+JIQUMOEawvIM7K49kA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:21976 Date: 2014-08-29T09:41:58+02:00 List-Id: On Fri, 29 Aug 2014 00:17:12 +0300, Niklas Holsti wrote: > On 14-08-28 23:09 , Dmitry A. Kazakov wrote: >> You could not implement an equivalent of I/O queueing under the Ravenscar >> constraints. > > It is certainly possible to implement an I/O request queue in Ravenscar; > I have done so for the platform SW on ESA's GOCE satellite. Multiple > client tasks, one server (interface driver) task. An I/O request > contains (or is, or refers to) a client-specific protected object (PO) > with an "I/O completed" entry, on which the client task waits after > enqueueing the I/O request. The server task processes submitted I/O > requests in any order and concurrency it chooses; when an I/O request is > done, the server task calls an operation on the request's PO, which > unblocks the entry, resuming the client task. Looks ugly to me. But I don't understand how the server's queue is accessed by multiple tasks concurrently? And how could you cancel a pending request in this schema? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de