From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,19fcd836375ee2d1 X-Google-Attributes: gidf7344,public X-Google-Thread: f4ba4,19fcd836375ee2d1 X-Google-Attributes: gidf4ba4,public X-Google-Thread: 10beba,19fcd836375ee2d1 X-Google-Attributes: gid10beba,public X-Google-Thread: f9325,19fcd836375ee2d1 X-Google-Attributes: gidf9325,public X-Google-Thread: fdd95,19fcd836375ee2d1 X-Google-Attributes: gidfdd95,public X-Google-Thread: 1014db,19fcd836375ee2d1 X-Google-Attributes: gid1014db,public X-Google-Thread: 10f9b1,19fcd836375ee2d1 X-Google-Attributes: gid10f9b1,public X-Google-Thread: 1164f8,19fcd836375ee2d1 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-09-29 13:52:09 PST Path: gmdzi!unido!unidui!math.fu-berlin.de!ira.uka.de!yale.edu!think.com!Think.COM!sandee From: sandee@Think.COM (Daan Sandee) Newsgroups: comp.dcom.lans,comp.dcom.modems,comp.lang.c,comp.os.vms,comp.protocols.tcp-ip,comp.sys.dec,comp.unix.wizards,comp.sys.cdc,comp.sys.prime,comp.sys.ibm.pc.hardware Subject: Re: Help Requested in Defeating Ring Buffer Software Patent Keywords: Circular I/O Message-ID: <1991Sep29.195103.18362@Think.COM> Date: 29 Sep 91 19:51:03 GMT References: <882@salt.bellcore.com> Sender: news@Think.COM Followup-To: comp.sys.cdc Organization: Thinking Machines Corporation, Cambridge MA, USA Xref: gmdzi comp.dcom.lans:47876 comp.dcom.modems:50296 comp.lang.c:108395 comp.os.vms:131027 comp.protocols.tcp-ip:56486 comp.sys.dec:25404 comp.unix.wizards:23736 comp.sys.cdc:427 comp.sys.prime:460 comp.sys.ibm.pc.hardware:60968 This in response to Dave Goldblatt's request on the history of circular buffers, and as comment on Howard Bussey's response. Note I have set the followup to comp.sys.cdc, so we old CDC hands can go and wallow in nostalgia without annoying the rest of the universe further. There's still stuff that I don't know either that Dave would want to know, i.e. the real first date, so this is a hint to Dave to keep reading this newsgroup, as more details may turn up. -- Daan. In article <882@salt.bellcore.com>, howard@thumper.bellcore.com (Howard Bussey) writes: |> The SCOPE (and later KRONOS and NOS) operating systems on the CDC 6000 |> and 7000 series used a circular buffer for I/O. The control structure |> was like: |> |> struct CBUFFER { |> int *first, *in, *out, *limit; |> }; [ excellent description deleted ] |> .............. Actually, the PPs were only 1 processor, which |> time-multiplexed itself each microsecond among 10 or 20 different |> contexts, resulting in what looked like 10 or 20 individual PPs (each |> with 1 microsecond instruction cycle times). (not quite relevant, and not quite correct either. With 20 PPs, there were *two* PP chassis each acting as 10 logical PPs in a slot-and-barrel arrangement. Only the 6000 series ; don't know about 7000 series ; Cyber 70's were the same but optionally had 7 PPs per chassis ; Cyber 170s from Model D onwards had real hardware individual PPs). |> The SCOPE/KRONOS/NOS operating system .... Well, there's SCOPE, later known as NOS/BE ; and KRONOS, later known as NOS. That's two operating systems. The fact that both Scope and Kronos had circular buffers means that the feature must be *very* old. After 1970, they weren't talking to each other. In fact, lots of the Scope and Kronos development consisted of the two sides (re)inventing the same wheels, though in a different order. |> ..... may have allowed several |> simultaneous and independent transfers. I do know that tape-tape copies |> could keep the tapes spinning continuously. At least in SCOPE, the CPU-resident program could set up TWO of these structs (called File Environment Tables, or FETs), one for reading, one for writing, using the same buffer, then fire up one PP for reading and one for writing. The read PP would move the IN pointer, and the write PP would move the OUT pointer, and the CPU program could sit back and watch. This mechanism was known as pointer chasing. In this manner a tape-to-tape copy would proceed at full tape speed. If there was a hitch (say, error recovery on read) the write PP would find the buffer empty and give up. The CPU program would regain control, wait for data to be available, and fire up the write PP again. |> -------------------------------------------------------------- |> Howard Bussey Dave's original request was for any code before Oct 81. Well, I can find code which I *think* I wrote around 1976. But the basic principle was in CDC operating systems *at least* in the very early 1970's. Before my time, anyway. I first heard of this method in late 1973. (I wonder, do I still have the SCOPE 3.4 Handbook, dated 1972 or 1973, which describes this?) Is Greg Mansfield out there ? or Dave Cahlander ? Or Seymour Cray, for that matter : I don't think he invented it, but I'm sure he knows who did. Daan Sandee sandee@think.com Thinking Machines Corporation Cambridge, Mass 02142