ArticleslgStudy

computer science

PRIMOS

PRIMOS is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand PRIMOS rather than just read about it. In short: PRIMOS is a discontinued operating system developed during the 1970s by Prime Computer for its minicomputer systems. It rapidly gained popularity and by the mid-1980s was a serious contender as a mainline minicomputer operating system.

PRIMOS — main illustration
PRIMOS — illustration

Key takeaways

  • PRIMOS belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect PRIMOS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of PRIMOS from memory before moving on to harder problems.

Reference excerpt

PRIMOS is a discontinued operating system developed during the 1970s by Prime Computer for its 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 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 and PRIMOS no longer existed. Prime had also offered a customizable real-time OS called RTOS.

Internals One feature of PRIMOS was that it, like MULTICS, was largely written in a high level language (with callable assembly language library functions available). At first, this language was FORTRAN IV, which was an odd choice from a pure computer science standpoint: no pointers, no native string type, etc. 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 on a NASA project. FORTRAN was the language they had used both at NASA and, for many of them, at 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. They developed hardware optimized to run FORTRAN, including machine instructions that directly implemented FORTRAN's distinctive 3-way branch operation. Since Prime's hardware did not perform byte addressing, there was no impetus to create a C 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, called PL/P, became the high level language of choice within PRIMOS, and the PL/P and, later 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 and, thanks to FORTRAN and PL/P, customers could reasonably modify PRIMOS as needed. For example, around 1990, the 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. 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, the usage of the Prime Macro Assembler _(PMA), 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 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. 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 or FORTRAN. Among the third-party tools was a package named Queo, which was more powerful than COBOL despite being less verbose. The PRIMOS character set was basically 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 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's demise, a list of languages supported by PRIMOS included:

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 of PRIMOS included a scripting language, CPL (Command Procedure Language). This interpreted language, bearing similarities to Pascal, was both accessible to novice users and capable of powerful command line automation. ESRI used PRIMOS CPL as a basis for the platform-independent scripting languages AML (for ArcInfo) and SML (PC-ARC/INFO). 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 that immediately began to run in the background when initiated by the PHANTOM command. "Conventional" batch jobs were initiated via the JOB command, including the ability to schedule them for a particular time.

… excerpt ends here. Continue reading the full article.

Illustrations

PRIMOS: A Prime 9950 computer system with CRT console showing PRIMOS on the screen, in Kean University computer room
A Prime 9950 computer system with CRT console showing PRIMOS on the screen, in Kean University computer room

Worked examples

Example 1 — a first encounter with PRIMOS

Start with the simplest possible case. Write down what PRIMOS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to PRIMOS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about PRIMOS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of PRIMOS

In research
PRIMOS appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses PRIMOS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
PRIMOS is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1972 software, Discontinued operating systems, Multics-like, so understanding it makes those chapters shorter.
In everyday life
Look for PRIMOS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “PRIMOS” →

How to study PRIMOS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what PRIMOS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain PRIMOS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is PRIMOS in simple terms?

PRIMOS is a discontinued operating system developed during the 1970s by Prime Computer for its minicomputer systems. It rapidly gained popularity and by the mid-1980s was a serious contender as a mainline minicomputer operating system.

Why does PRIMOS matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study PRIMOS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on PRIMOS.

Tags

  • 1972 software
  • Discontinued operating systems
  • Multics-like
  • Proprietary operating systems

Keep exploring