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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98fcd569e727e97c X-Google-Attributes: gid103376,public From: steved@pacifier.com (Steve Doiel) Subject: Re: Tasking Techniques - Opinions? Date: 1997/06/07 Message-ID: <5nahlk$oln$1@news.pacifier.com>#1/1 X-Deja-AN: 246696877 References: <5n2hjr$ohm$1@news.pacifier.com> <3394EC73.3011@bix.com> Organization: Pacifier Online Data Service, Vancouver, Wa. ((360) 693-0325) Newsgroups: comp.lang.ada Date: 1997-06-07T00:00:00+00:00 List-Id: In article <3394EC73.3011@bix.com>, tmoran@bix.com says... > >> A third >> module contains a "send task" that is in a short loop that >> removes entries from the send queue, transmits the data out the >> socket and then returns the packet buffer to the free pool. >What does this task do if there's nothing to send? Does it sit and eat >CPU or is there some way it can go to sleep and be awakened when there's >work to do, or is it always busy and my question is irrelevant? The send queue remove operation is contained within an entry to a protected type that has a guard condition causing the task to pend if the queue is empty.