# PRIMOS

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/PRIMOS
> Markdown URL: https://mediated.wiki/source/PRIMOS.md
> Source: https://en.wikipedia.org/wiki/PRIMOS
> Source revision: 1333607719
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Operating system

This article is about the operating system. For other uses, see [Primo (disambiguation)](/source/Primo_(disambiguation)).

Operating system

PRIMOS Developer Prime Computer Written in FORTRAN, Assembly language OS family Multics-like Working state Discontinued Latest release 24.0.0.R52 / July 3, 1997; 28 years ago (1997-07-03) Available in English Supported platforms Prime Computer Kernel type Monolithic Default user interface Text-based user interface License Proprietary commercial software

A Prime 9950 computer system with CRT console showing PRIMOS on the screen, in [Kean University](/source/Kean_University) computer room

**PRIMOS** is a discontinued [operating system](/source/Operating_system) developed during the 1970s by [Prime Computer](/source/Prime_Computer) for its [minicomputer](/source/Minicomputer) systems. It rapidly gained popularity and by the mid-1980s was a serious contender as a mainline minicomputer operating system.

With the advent of [PCs](/source/Personal_computer) and the decline of the minicomputer industry, Prime was forced out of the market in the early 1990s, and by the end of 2010 the trademarks for both PRIME[1] and PRIMOS[2] no longer existed.[3]

Prime had also offered a customizable real-time OS called RTOS.[4]

## Internals

One feature of PRIMOS was that it, like [MULTICS](/source/MULTICS), was largely written in a [high level language](/source/High_level_language)[5] (with callable [assembly language](/source/Assembly_language) library functions available). At first, this language was [FORTRAN](/source/FORTRAN) IV,[6] which was an odd choice from a pure [computer science](/source/Computer_science) standpoint: no [pointers](/source/Pointer_(computer_programming)), no native [string](/source/String_(computer_science)) type, etc.[7][8] FORTRAN was, however, the language most known to engineers, and engineers were a big market for Prime in their early years.

The unusual choice of FORTRAN for the OS programming language had to do with the people who founded Prime. They had worked for [Honeywell](/source/Honeywell) on a [NASA](/source/NASA) project.[9] FORTRAN was the language they had used both at NASA and, for many of them, at [MIT](/source/MIT). This connection with Honeywell extended to the point that the original Prime computers were compatible with Honeywell Series 16 minicomputers.

Honeywell at that time was uninterested in minicomputers, so a group of employees left and founded Prime in 1972, "taking" the code with them.[10] They developed hardware optimized to run FORTRAN, including machine instructions that directly implemented FORTRAN's distinctive [3-way branch operation](/source/Arithmetic_IF).

Since Prime's hardware did not perform [byte addressing](/source/Byte_addressing), there was no impetus to create a [C](/source/C_(programming_language)) [compiler](/source/Compiler). Late models of the hardware were eventually modified to support *I-mode*, and programs compiled in C.

Later, at version 16, a version of [PL/I](/source/PL%2FI), called PL/P, became the high level language of choice within PRIMOS, and the PL/P and, later [Modula-2](/source/Modula-2), languages were used in the Kernel. Furthermore, some new PRIMOS utilities were written in SP/L, which was similar to PL/P.

The source code to PRIMOS was available to customers[4][11] and, thanks to FORTRAN and PL/P, customers could reasonably modify PRIMOS as needed. For example, around 1990, the [University of Salford](/source/University_of_Salford) in the UK, modified the PRIMOS running on its five 9955 systems so that undergraduates could no longer use the MESSAGE command, that wrapped the PRIMOS SMSG$() call, to send messages to other undergraduates, because online "chatting" using that command was becoming rife, tying up terminals from the limited pool available. Messaging using that command was akin to SMS text messaging today, except a maximum of 80 characters could be sent per message.

Very early versions of PRIMOS (revision 6) were originally called DOS (PRIMOS 2) and later DOSVM (PRIMOS 3), but starting with PRIMOS 4, on the P400 system, PRIMOS was the name that stuck.[5] There were many major releases of PRIMOS. The last official revision (24.0.0.R52) was released July 3, 1997. By this time, a company called Peritus (which employed a number of ex-Prime engineers) was maintaining PRIMOS.

From Revision 19, major portions of PRIMOS were written in the languages SPL and [Modula-2](/source/Modula-2), the usage of the Prime Macro Assembler _(PMA), [FORTRAN IV](/source/FORTRAN_IV) and PL/P declined considerably around this time. Programs were guaranteed to run on all current Prime processors (subject to sufficient resources being available), as well as all subsequent Prime processors.

In the versions of PRIMOS ca. 1977 and later, the [filesystem](/source/Filesystem) included a distinctive construct known as the Segment Directory. Unlike more traditional directories, the files anchored in a segment directory were located using an integer index, effectively reducing searches of the directory to a simple [hash function](/source/Hash_function). Segment Directories were used in their Keyed-Index/Direct Access (KI/DA) file access system and in later versions of the system loader.

### Data access

Indexed data could be stored in a MIDAS file: Multi-Indexed Data Access System and be accessed via [COBOL](/source/COBOL) or FORTRAN. Among the third-party tools was a package named [Queo](/source/QUEO),[12] which was more powerful than COBOL despite being less verbose.

The PRIMOS character set was basically [ASCII](/source/ASCII) but with the 8th bit inverted. The original 7-bit standard for ASCII left the 8th bit unspecified, but on the commonly available [Teletype Model 33](/source/Teletype_Model_33) ASR, the bit was customarily set to 1, and this became Prime's standard. This is vital to realize when transferring data from PRIMOS to almost any other system.

## User tools

By the time of [Prime Computer](/source/Prime_Computer)'s demise, a list of languages supported by Primos included:[13]

- BASIC – Prime BASIC compiler

- BASICV – Virtual memory BASIC compiler

- COBOL – COBOL compiler

- F77 – Compiles FORTRAN 77 or FORTRAN IV code

- FTN – Compiles FORTRAN IV code

- NCOBOL – Non-shared (non-virtual) COBOL compiler

- PL1G – Compiles PL/1, subset G code

- PASCAL – University of Sheffield Pascal

- PMA – Assembles Prime Macro Assembler code

Also available, but relatively uncommon, were:

- DBASIC – Interpreted BASIC with double-precision arithmetic

- RPG – Compiles an RPG II program (non-virtual)

- SPL – Compiles an SPL program

- VRPG – Compiles an RPG II program (virtual)

### Scripting

Late versions[14] of PRIMOS included a [scripting language](/source/Scripting_language), CPL (Command Procedure Language).[15] This [interpreted language](/source/Interpreted_language), bearing similarities to Pascal, was both accessible to novice users and capable of powerful command line automation. [ESRI](/source/Esri) used PRIMOS CPL as a basis for the platform-independent scripting languages AML (for [ArcInfo](/source/ArcInfo)) and SML ([PC-ARC/INFO](/source/ArcInfo)).

This was a step beyond what already was available via:

- COMI – Command input (.COMI filetype)

- COMO – Command output – similar to a batch log file, but also usable interactively

### PHANTOMS vs JOBS

"Phantoms" were a form of unattended [background processes](/source/Background_process) that immediately began to run in the background when initiated by the PHANTOM command. "Conventional" [batch jobs](/source/Batch_job) were initiated via the JOB command, including the ability to schedule them for a particular time.

### Fault Tolerance

The PRIMOS operating system incorporated advanced [fault tolerance](/source/Fault_tolerance) features to ensure system reliability and data integrity. One notable feature was the MIRROR_ON command, which facilitated the creation of a pair of logically equivalent, identical [partitions](/source/Disk_partition) that were maintained in real-time. This command was instrumental in enhancing the system's resilience to hardware failures. When activated, the MIRROR_ON command initiated [disk mirroring](/source/Disk_mirroring), duplicating all write operations to a primary disk onto a secondary disk. This redundancy allowed the system to seamlessly continue operations using the mirror partition in the event of a failure of the primary partition. Unlike [RAID 1](/source/RAID_1), which typically requires specific hardware support for disk mirroring, the MIRROR_ON command implemented this functionality at the software level, offering a flexible and cost-effective solution for data redundancy.[16]

## Networking

Primes's main offerings, each covering a specific need, were:

- PRIMENET

- RINGNET

- RJE

### PRIMENET

Prime's PRIMENET software was designed to enable "transparent access to any system in the network without burdening the user with extra commands."[17] With PRIMENET, a user on System A could access files on System B as if they were on System A,[18] or even log into another system using the RLOGIN (Remote Login) command.[19]

### RINGNET

Released similar timing to PRIMENET,[20] [21] it enabled high-speed [local area networking](/source/Local_area_network).[22]

### RJE

2780/3790 emulation was included.[23]

## Primix

In 1985, Prime's port of AT&T's [UNIX System V](/source/UNIX_System_V), called Primix, became available with Primos Release 19.4.2 that was modified to include Unix functions. It co-existed with PRIMOS, allowing users to switch back and forth.[24]

## See also

- [List of operating systems](/source/List_of_operating_systems)

- [Timeline of operating systems](/source/Timeline_of_operating_systems)

## References

1. **[^](#cite_ref-1)** US Trademark No. 73123025

1. **[^](#cite_ref-2)** US Trademark No. 73122880

1. **[^](#cite_ref-3)** abandoned, expired,"cancelled"["The Ultimate Fate of Prime, PRIMOS"](https://groups.google.com/d/topic/comp.sys.prime/bZK4ZuDM4SA).

1. ^ [***a***](#cite_ref-ORAL_4-0) [***b***](#cite_ref-ORAL_4-1) ["Comp.Sys.Prime FAQ"](https://www.malch.com/prime/primefaq.htm). *www.malch.com*.

1. ^ [***a***](#cite_ref-CompHist.UK_5-0) [***b***](#cite_ref-CompHist.UK_5-1) ["Primos Internal Structure O.S. Notes - Computing History"](https://www.computinghistory.org.uk/det/15644/Primos-Internal-Structure-O-S-Notes). *www.computinghistory.org.uk*.

1. **[^](#cite_ref-Pr1meONE_6-0)** ["Prime MAN2602 Primos Interactive User Guide"](https://www.computinghistory.org.uk/det/15917/Prime-MAN2602-Primos-Interactive-User-Guide). Prime Computer. June 1976.

1. **[^](#cite_ref-7)** ["history - Why was Fortran never used to develop an Operating System?"](https://softwareengineering.stackexchange.com/questions/258209/why-was-fortran-never-used-to-develop-an-operating-system). *Software Engineering Stack Exchange*.

1. **[^](#cite_ref-8)** mentions that the [Burroughs MCP](/source/Burroughs_MCP) operating system was written in [ALGOL](/source/ALGOL).

1. **[^](#cite_ref-HoneyFort_9-0)** ["Oral History of John William (Bill) Poduska"](http://archive.computerhistory.org/resources/access/text/2012/06/102658256-05-01-acc.pdf) (PDF).

1. **[^](#cite_ref-10)** It was public domain, having been written with NASA funding.

1. **[^](#cite_ref-11)** free at the beginning, but subsequently Prime charged

1. **[^](#cite_ref-12)** from Computer Techniques, Inc. OLYPHANT, Pa.["Prime Users Offered Queo-IV Package"](https://books.google.com/books?id=FBv773oEDMwC&pg=PA40). *Computerworld*. Vol. XV, no. 35. 31 August 1981.

1. **[^](#cite_ref-TX5_13-0)** ["INTRODUCTION TO THE PRIMOS OPERATING SYSTEM, Part V"](https://web.archive.org/web/20190330021623/http://www.textfiles.com/hacking/primos5.txt). Archived from [the original](https://www.textfiles.com/hacking/primos5.txt) on 30 March 2019. Retrieved 11 September 2018.

1. **[^](#cite_ref-14)** ["CPL - Primos command language (Computer Language)"](http://hopl.info/showlanguage.prx?exp=6866&language=CPL). Retrieved 11 September 2018. Prime's command shell language, introduced with PRIMOS 18.2 in 1981

1. **[^](#cite_ref-15)** ["Command Procedure Language (CPL)"](https://web.archive.org/web/20200312023546/https://sysovl.info/pages/blobs/prime/brochures/jim/PrimeCPL.pdf) (PDF). Archived from [the original](https://sysovl.info/pages/blobs/prime/brochures/jim/PrimeCPL.pdf) (PDF) on 12 March 2020.

1. **[^](#cite_ref-16)** ["Operator's Guide to System Commands"](http://bitsavers.trailing-edge.com/pdf/prime/doc/DOC9304-6LA_Operators_Guide_To_System_Commands_Rev23.3_May92.pdf) (PDF). *bitsavers.trailing-edge.com*.

1. **[^](#cite_ref-17)** [".:: Phrack Magazine ::"](http://phrack.org/issues/18/4.html). *phrack.org*.

1. **[^](#cite_ref-18)** ["INTRODUCTION TO THE PRIMOS OPERATING SYSTEM, Part II"](http://www.textfiles.com/hacking/primos2.txt).

1. **[^](#cite_ref-19)** ["INTRODUCTION TO THE PRIMOS OPERATING SYSTEM, Part IV"](http://www.textfiles.com/hacking/primos4.txt).

1. **[^](#cite_ref-20)** ["7.2-Prime Computers"](http://www.historyofcomputercommunications.info/Book/7/7.2-Prime%20Computers.html).

1. **[^](#cite_ref-21)** ["Computerworld"](https://books.google.com/books?id=FBv773oEDMwC). IDG Enterprise. 31 August 1981 – via Google Books.

1. **[^](#cite_ref-22)** Allison Smith, ed. (22 October 2013). [*CAD International Directory 1986*](https://books.google.com/books?id=U-IgBQAAQBAJ). Butterworth & Co. p. 228. [ISBN](/source/ISBN_(identifier)) [978-1483161471](https://en.wikipedia.org/wiki/Special:BookSources/978-1483161471).

1. **[^](#cite_ref-23)** Fahey, Michael (26 October 1987). ["Planning for open systems takes Prime Importance"](https://books.google.com/books?id=KB0EAAAAMBAJ). *Network World*. Vol. 4, no. 43. IDG Network World Inc. pp. 1, 33–35 – via Google Books.

1. **[^](#cite_ref-24)** Desmond, John (20 May 1985). ["Prime adds Unix environment for 50 series users"](https://books.google.com/books?id=ygHfUXZWXlcC&pg=PA7). *Computerworld*. Vol. XIX, no. 20. p. 7.

## External links

- [Sourcecode Rev 19](http://bitsavers.informatik.uni-stuttgart.de/bits/Prime/)

- [Usenet post of Jim Wilcoxson](https://groups.google.com/group/alt.os.multics/msg/96980f287faba2d8) about the Prime 50-series emulator he created, running PRIMOS 19.2 (7 April 2007)

- [Prime Computer FAQ](https://www.malch.com/prime/primefaq.htm) from comp.sys.prime Usenet group

- [Documentation](http://bitsavers.trailing-edge.com/pdf/prime/doc/)

- [Software](http://ftp.lysator.liu.se/pub/primos/)

v t e Multics Developer MIT Bell Labs General Electric Honeywell Groupe Bull People David D. Clark Fernando J. Corbató Monte Davidoff Peter J. Denning Jack Dennis Stuart Feldman Robert M. Graham Bernard Greenberg Douglas McIlroy Robert Morris Peter G. Neumann Joe Ossanna Michael A. Padlipsky Dennis Ritchie Jerry Saltzer Glenda Schroeder Michael Schroeder Richard Soley Ken Thompson Tom Van Vleck Victor A. Vyssotsky Software Space Travel Maclisp Macsyma Multics Emacs Multics Relational Data Store Multics-like systems Domain/OS General Comprehensive Operating System GEORGE ICL VME Multiple Console Time Sharing System PRIMOS Stratus VOS Related Project MAC Compatible Time-Sharing System (predecessor) Category

v t e Operating systems General Comparison Forensic engineering History List Timeline Usage share User features comparison Variants Disk operating system Distributed operating system Embedded operating system Hobbyist operating system Just enough operating system Mobile operating system Network operating system Object-oriented operating system Real-time operating system Supercomputer operating system Kernel Architectures Exokernel Hybrid Microkernel Monolithic Multikernel vkernel Rump kernel Unikernel Components Device driver Loadable kernel module User space and kernel space Process management Concepts Computer multitasking (Cooperative, Preemptive) Context switch Interrupt IPC Process Process control block Real-time Thread Time-sharing Scheduling algorithms Fixed-priority preemptive Multilevel feedback queue Round-robin Shortest job next Memory management, resource protection Bus error General protection fault Memory paging Memory protection Protection ring Segmentation fault Virtual memory Storage access, file systems Boot loader Defragmentation Device file File attribute Inode Journal Partition Virtual file system Virtual tape library Supporting concepts API Computer network HAL Live CD Live USB Shell CLI User interface PXE

---
Adapted from the Wikipedia article [PRIMOS](https://en.wikipedia.org/wiki/PRIMOS) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/PRIMOS?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
