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: 103376,b59b337045eece60 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!d1g2000hsg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Structure of the multitasking server Date: Sun, 21 Sep 2008 10:37:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2cfc647a-c9cb-4e0c-9909-7923575fd1ec@d1g2000hsg.googlegroups.com> References: <8b4d1170-22e6-40d3-8ed1-096dc0163491@m36g2000hse.googlegroups.com> NNTP-Posting-Host: 85.3.87.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1222018623 2035 127.0.0.1 (21 Sep 2008 17:37:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 21 Sep 2008 17:37:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d1g2000hsg.googlegroups.com; posting-host=85.3.87.130; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:2056 Date: 2008-09-21T10:37:03-07:00 List-Id: On 20 Wrz, 01:01, a...@anon.org (anon) wrote: > Since you are using Channels, I am assuming that your talking about TCP/I= P > servers. Not necessarily, although in this case it is indeed true. > In this case you should look into using the Check_Selector Why? If I want to keep the number of pipelines relatively small, then fixed pool of tasks seems to be quite clean. > Now the way GNAT has written the Selector function and the way the C_Sele= ct > is written the maximum number of server per Check_Selector is 27. Is it documented somewhere? The only "documentation" I have found is the .ads file for GNAT.Sockets, and this detail is not mentioned there. Also, on my system the default limit on the number of file descriptors used with select(2) is 1024. >=A0That is, > each C_Select function can only monitor 32 sockets What is C_Select? Why would it be more limited than select(2) (the system-level one)? -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada