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,fed2e7871ca258cd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-15 03:53:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed.freenet.de!newsfeed.easynews.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Server - tasking and long lived connections Date: Sat, 15 Dec 2001 13:18:38 +0100 Organization: Enyo's not your organization Message-ID: <878zc48yn5.fsf@deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cancel-Lock: sha1:84hAVWZSURYAM7SZwYrEO0nR5XE= Xref: archiver1.google.com comp.lang.ada:17949 Date: 2001-12-15T13:18:38+01:00 List-Id: Eric Merritt writes: > Linux threading is a bit less efficient from what I > understand. I think it by default can handle about 512 > tasks, depending on configuration. This can be changed > with a custom kernel but even then it starts to get > inefficient after a certain point. The 512 tasks limit is probably related to some address space limit, since each task needs address space for its stack (2 MB by default with GNU libc pthreads, IIRC). There are several threading implementations for GNU/Linux (GNU libc, FSU Threads, GNU Pth, GNU Pth with IBM extensions). Some of the scale better than others. How many parallel connections do you want to handle? Is data transferred continuously? Does your database backend support so many client connections? > Using processes never really crossed my mind, I tend > not to really consider them becuase they have no real > advantage over threads and alot of disadvantages. There are advantages. For example, they are more portable ac