From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Sun, 18 Feb 2024 23:47:12 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 18 Feb 2024 23:47:12 -0000 (UTC) Injection-Info: dont-email.me; posting-host="ddd376f1c1df309f4c794f01086d8954"; logging-data="1589510"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BUcqgHHX40raku2R6DCwJ" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:trvOTZJoFbP6GJeIoI7S5KoH4RU= Xref: news.eternal-september.org comp.lang.ada:66100 List-Id: On Sun, 18 Feb 2024 23:10:10 +0100, Dmitry A. Kazakov wrote: > On 2024-02-18 21:56, Lawrence D'Oliveiro wrote: >> On Sun, 18 Feb 2024 11:06:16 +0100, Dmitry A. Kazakov wrote: >> >>> On 2024-02-18 01:00, Lawrence D'Oliveiro wrote: >>> >>>> I thought Windows had pipes. >>> >>> Yes it has, but very rarely used though much better designed than UNIX >>> pipes. >> >> So why don’t programmers use it? > > There is no need in that. It would be so much simpler to use the OS-provided facility, than having to resort to this complicated library which is trying to wrap a stream interface around shared-memory buffers. At least, it would be in POSIX. No doubt the Windows API makes it more complicated ... >>> In general Windows has much richer and better API regarding >>> interprocess communication than Linux. >> >> So why is it that Windows programs tend to avoid running multiple >> processes? > > Because there is no need in multiple processes most of the time. Windows > has a different philosophy and services which preclude the process orgy > so characteristic to UNIX. For example, Windows has and collects many > resources when a process dies. So you do not need a process monitoring > file locks, because there is no any. Windows is the one that keeps files locked, *nix systems typically do not.