Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!.POSTED!not-for-mail From: Twirlip of the Mists Newsgroups: comp.lang.java.programmer Subject: Re: single instance Date: Sun, 6 Jan 2013 19:22:00 -0500 Organization: Zamps Anonymous Message-ID: References: <1rxjd74kjrhfc.mdbq9v09dxbn$.dlg@40tude.net> <50e8e7ea$0$282$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Injection-Date: Mon, 7 Jan 2013 00:22:07 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="dFgnyn+tOxWDOKUKaouSNfWUT7A"; logging-data="9526"; mail-complaints-to="abuse@mixmin.net" User-Agent: 40tude_Dialog/2.0.15.1 Xref: csiph.com comp.lang.java.programmer:21083 On Sat, 05 Jan 2013 21:56:37 -0500, Arne Vajhøj wrote: > On 1/4/2013 1:44 PM, Twirlip of the Mists wrote: >> On Fri, 4 Jan 2013 10:22:44 -0800, Peter Duniho wrote: >> >>> On Fri, 4 Jan 2013 12:18:59 -0500, Twirlip of the Mists wrote: >>> >>>> Why not just use the process PID as unique identifier? >>> >>> You misunderstand. >> >> I do not. > > Obviously you did. No, I did not. >>> The "unique identifier" is not per-process, but rather per-program. >> >> Then you should have just said so. > > He did. He didn't. > Count the frequency of "program" and "process". Counting the number of occurrences of some words without considering their context is a meaningless metric. >> The concept of a PID is platform-agnostic -- all Unices seem to have it, >> MacOS is a Unix nowadays, and newer Windowses have PIDs. It'd be surprising >> if there isn't a platform-agnostic way to get at PIDs -- a POSIX call that >> Windows supports, most likely. > > *nix and Windows support does not mean platform-agnostic. 1. When was the last time you, or anyone you know, bought or saw anyone using a computer or other gadget that wasn't either Apple, Windows, or some flavor of Unix? 2. How would you develop an OS without the concept of a PID? (No, the sucky iPhone "OS" doesn't count, since it DOESN'T MULTITASK. :P) 3. Does anyone tend to make OSen (iPhone "OS" again does not count) that *aren't* fairly POSIXy anymore? 4. And before you bring up some obscure legacy OS on some archaic mainframe that some large banking institution in some obscure corner of the world is still using to run some old bit of business logic for which they've long since lost all the source code, recall that the context here is *development of some new software*. Nobody sane develops *new* software for clunkers like that -- they develop it for their farm of Unix servers or their ten thousand cubicle boxen running Windows, even if maybe it uses some network to get some service from the legacy mainframe. >>>>> It is important to keep in mind that even this approach is not 100% >>>>> reliable. UDP messages are not guaranteed delivery, >>>> >>>> This is loopback interface we're talking about, not the wild wild internet. >>> >>> Maybe you should have kept reading, [rest deleted unread] >> >> You will need to be more polite and less judgmental if you want me to read >> more of what you have to say. > > Peter most likely does not care whether you read his posts or not. It's starting to look like you don't either, which naturally causes one to question why you bother writing them. -- Hexapodia is the key insight.