Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24b61926814b7b5

Jump to content

Talk:Operating system/Archive 6

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Latest comment: 2 years ago by Chatul in topic Edit request 9
Archive 1Archive 4Archive 5Archive 6Archive 7

Software interrupt?

The text A software interrupt (also known as a signal) is a notification to a process that an event has occurred.[1] Whereas a user process can send signals to other user processes and even to itself, signals are usually sent from the kernel.[1]in #Software interrupt conflicts with Interrupt#Software interrupts. External events such as expiration of time slice, IPC signals and keyboard signals from the user do not fit the definition in Interrupt#Software interrupts, nor have I seen the term applied that way in any OS. Also, there is no text describing how various operating systems handle various types of interrupts.

I propose that the introduction be replaced by the text in Interrupt#Software interrupts and that subsections be added[a] describing sample scenarios in various operating systems. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 11:14, 25 April 2022 (UTC)

  • I'm an avid student of how computers work. So, I welcome additional information. However, the Wikipedia rules say secondary research -- reliably sourced. Timhowardriley (talk) 04:01, 1 May 2022 (UTC)
    WP:RS says secondary sources that present the same material are preferred.; primary sources are not prohibited. If you know of secondary or tertiary sources covering the same material, please add citations in addition to or in place of the current citations. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 17:12, 1 May 2022 (UTC)
    I don't mean to come across as fastidious. But just to be perfectly clear, secondary research is another way of saying not primary (original) research. (I wanted to word the sentence in the positive.) Of course, secondary research may be from primary sources or secondary sources. Timhowardriley (talk) 22:08, 2 May 2022 (UTC)
  • Regarding "External events such as expiration of time slice, IPC signals and keyboard signals from the user do not fit the definition in Interrupt#Software interrupts": Quoting directly from the textbook: "Among the types of events that cause the kernel to generate a signal for a process are the following: 1) [omitted], 2) [omitted], 3) A software event occurred. For example, input became available on a file descriptor, the terminal window was resized, a timer went off, the process's CPU time limit was exceeded, or a child of this process terminated." The paragraph as written seems kosher. Timhowardriley (talk) 08:25, 1 May 2022 (UTC)
    Interrupt#Software interrupts reads A software interrupt is requested by the processor itself upon executing particular instructions or when certain conditions are met. Every software interrupt signal is associated with a particular interrupt handler.; that matches what I have seen elsewhere. The text you quoted does not claim that those events are software interrupts. That citation in no way justifies the existing text. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 17:12, 1 May 2022 (UTC)
    The sentence you quoted is uncited. The cited text I quoted does support the existing paragraph in the article. Timhowardriley (talk) 22:19, 2 May 2022 (UTC)

Notes

  1. I'm prepared to writeup descriptions of handling program and SVC interrupts in OS/360, but not, e.g., BSD, EXEC 8, GCOS, Linux, MCP, UNIX, Windows NT.

References

  1. 1 2 Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 388. ISBN 978-1-59327-220-3.

Software interrupt? (Third Opinion)

@Chatul: I'm thinking about posting this issue to Wikipedia:Third opinion. The instructions say, "[E]ditors are requested to present a short summary of the dispute, in plain English and preferably in a new subsection below the main discussion, so that 3O volunteers may find it easier to respond to." As I am the editor who wrote the article's existing operating system#Software interrupt section, I stand by my cited sentences. Please quote from the article the sentences that are being questioned. Also, present reliably sourced alternatives. Who knows, maybe this fresh start will alone resolve the conflict. Timhowardriley (talk) 22:54, 2 May 2022 (UTC)

Additional thought: The category of an event to be a hardware interrupt or a software interrupt may be divided on a thin line. For example, another textbook seems to categorize the context switch as a hardware interrupt. I put it in the software category because the cited textbook clearly put it here. So, if another textbook has an event categorized differently than the article's category, of course I will accommodate. Timhowardriley (talk) 23:36, 2 May 2022 (UTC)

The sentence in dispute is A software interrupt (also known as a signal) is a notification to a process that an event has occurred.[1]. The dispute is on whether signals belong in the article and on whether, e.g., Supervisor Call instructions, overflow traps, belong in that section instead.
I took a look at the book you sited, and the relevant text[2] does not say that a signal is an interrupt, but only that "Signals are sometimes described as software interrupts." The text in Interrupt#Software interrupts matches what I have seen, but I've added a {{cn}} template there.
There are machines with context-switch instructions, e.g., Move Stack on the B6500. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 13:23, 3 May 2022 (UTC)
  1. Are you're saying the entire Software interrupt subsection should be removed from the Interrupt section because it doesn't contain the term Supervisor Call Instructions? Timhowardriley (talk) 15:13, 3 May 2022 (UTC)
    No, I'm initially saying that the text should be moved to an appropriate section because it has nothing to do with interrupts, any more than straw dummy has to do with either straw or dummies. I'm then saying that there is other information that is not present but belongs there, and giving SVC as an example. Shmuel (Seymour J.) Metz Username:Chatul (talk) 10:30, 4 May 2022 (UTC)
  2. Regarding "[Kerrisk] does not say that a signal is an interrupt, but only that 'Signals are sometimes described as software interrupts.'": Signal (IPC) is the UNIX jargon for software interrupt. Do you agree? Timhowardriley (talk) 22:03, 3 May 2022 (UTC)
    Of course I do not agree. Signal is the UNIX jargon for signal. Shmuel (Seymour J.) Metz Username:Chatul (talk) 10:35, 4 May 2022 (UTC)
  3. In Kerrisk's book, the sentence following the sentence you quoted is, "Signals are analogous to hardware interrupts in that they interrupt the normal flow of execution of a program[.]" The Interrupts section in this article says, "Interrupts cause the central processing unit (CPU) to have a control flow change away from the currently running process." Are you saying this is a contradiction? Timhowardriley (talk) 15:43, 3 May 2022 (UTC)
    Why would you imagine that I am saying that? What I am saying is that "foo is anlogous to bar" is not the same as "foo is bar". Shmuel (Seymour J.) Metz Username:Chatul (talk) 10:38, 4 May 2022 (UTC)
  4. Are you saying, because machines have context-switch instructions, the entire Software interrupt subsection should be removed from the Interrupt section? Timhowardriley (talk) 15:43, 3 May 2022 (UTC)
    No, I was simply commenting on your For example, another textbook seems to categorize the context switch as a hardware interrupt. and clarifying that a context switch could be part of the architecture rather than an OS construct, depending on the system under discussion. Shmuel (Seymour J.) Metz Username:Chatul (talk) 10:44, 4 May 2022 (UTC)
  • In conclusion, you are claiming that the sentences in the Software interrupt subsection are bad sentences. However, you didn't present reliably sourced, alternative sentences. You didn't convey what good sentences should look like. Timhowardriley (talk) 11:25, 4 May 2022 (UTC)
    I'm saying
    1. There should be an IPC section, and information on signals belongs there, not under software interrupts
    2. The section on software interrupt should discuss the major types of synchronous interrupts, including
      1. Special instructions, e.g., INT, SVC, UUO
      2. Faults, e.g., addressing, invalid opcode, overflow
      3. Debugging and monitoring facilities, e.g., program-event recording[3] (PER)
    Good sentences should say signal when they're describing signals. I'm still trying to find an online RS that is not behind a paywall. Meanwhile, I've created Wikipedia talk:WikiProject Computer science#Definition of software interrupt. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 15:35, 4 May 2022 (UTC)
I have reviewed Interrupt#Software_interrupts and it looks mostly good (I'm not sure interrupts from the MMU would be considered software interrupts). Operating_system#Software_interrupt, not so good. A signal is similar to a software interrupt or potentially initiated by a software interrupt but they are not the same. As explained in Interrupt#Software_interrupts, a software interrupt occurs when software executes an instruction that specifically requests it and, as a result, the CPU invokes an ISR  in the same way a hardware signal would invoke an ISR. ~Kvng (talk) 15:05, 8 May 2022 (UTC)
Regarding "not so good": You apparently agree with the INT machine instruction paragraph. What if it's the kernel executing INT? Are you questioning the error conditions? Are you questioning the user initiated termination? Are you questioning the UNIX kill() system call? Are you questioning the pipe coordinations? Are you questioning the normally occurring events -- timeslice/context switch or timer? I'm uneasy about the timeslice/context switch, but it's clearly in the textbook as a software interrupt. Timhowardriley (talk) 19:21, 8 May 2022 (UTC)


The only problem that I see with the INT paragraph is that it conflates machine language with assembly language.The second sentence should start with something like The assembler syntax is.
Depending on how you define kernel, an instruction like INT may be allowed or prohibited in the kernel. E.g., in OS/360, an SVC is allowed in a type 2, 3 or 4 SVC routine but not in a type 1 SVC routine.
I'm questioning 'everything that is not part of the computer's architecture. The material belongs in the article, but not in the Interrupts section.
There's more than one textbook, and other textbooks[4][5] define software interrupt differently. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 00:06, 9 May 2022 (UTC)
@Timhowardriley, software interrupts use much of the same CPU hardware that hardware interrupts use so it is probably not right to say that a hardware interrupt is a message to the CPU and a software interrupt is not. Time-slice context switches are not software interrupts (though the do interrupt running software), they are a core operating system feature that is sometimes triggered by a hardware interrupt (timer). The interrupt character does interrupt a software process so it can be called a software interrupt but it is not what we're talking about here. ~Kvng (talk) 23:48, 11 May 2022 (UTC)
  1. Regarding "so it is probably not right to say that a hardware interrupt is a message to the CPU and a software interrupt is not.": The sentences in the article you are referring to are paraphrases from two textbooks. I added the quotes from the textbooks in the citations with this edit. Do you agree with the paraphrasing? Timhowardriley (talk) 01:17, 12 May 2022 (UTC)
  2. Regarding "Time-slice context switches are not software interrupts (though the do interrupt running software)": I used to also think so too. Then I discovered the alarm signal. In Unix-like OSs, SIGALRM sets the timer for when SIGPROF is sent to perform a context switch. Kerrisk writes on page 480, "ITIMER_PROF: Create a profiling timer. A profiling timer counts in process time (i.e., the sum of both user-mode and kernel-mode CPU time). When the timer expires, a SIGPROF signal is generated for the process." If you still don't agree that a time-slice is a software interrupt, then I'll move time-slices to outside of software interrupt. Timhowardriley (talk) 01:17, 12 May 2022 (UTC)
    Followup: I did a fresh look at Kerrisk's book, The Linux Programming Interface, and added the quote to the citation here. I'm now very convinced that time-slices are software interrupts. Timhowardriley (talk) 01:34, 12 May 2022 (UTC)
I added software ISR execution to the article and removed a sentence about messages. Does it read better, now? Timhowardriley (talk) 22:06, 8 May 2022 (UTC)
In all my research, a theme has formed: interrupts are signals -- signals either to the CPU or to a process. Even in the hardware context, Abraham Silberschatz writes in Operating System Concepts (1994), "Hardware may trigger an interrupt at any time by sending a signal to the CPU, usually by way of the system bus." Timhowardriley (talk) 22:06, 8 May 2022 (UTC)
That text is using signal in the generic English sense, not the term of art signal for Interprocess communication. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 00:06, 9 May 2022 (UTC)

@Kvng: Timhowardriley moved part of the discussion to #Does a signal cause a context switch?. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 11:27, 11 May 2022 (UTC)

RS for SYSENTER

There is a footnote mentioning SYSENTER that cites the URL https://wiki.osdev.org/SYSENTER, which looks like a good source for details; I have two concerns:

  1. Does it satisfy RS?
  2. Should it be changed from a raw URL to a full citation?

--Shmuel (Seymour J.) Metz Username:Chatul (talk) 12:23, 13 May 2022 (UTC)

  1. Regarding its reliability: Yes. It says, "The SYSENTER/SYSEXIT instructions (and equivalent SYSCALL/SYSRET on AMD) enable fast entry to the kernel, avoiding interrupt overhead." This seems correct and is consistent with other material on SYSENTER. Timhowardriley (talk) 15:53, 13 May 2022 (UTC)
    That's the right answer to the wrong question. I'm not asking whether the footnote is correct and relevant, I'm asking whether the cited web pages is a reliable source as defined by Wikipedia in WP:RS, specifically, "Articles should be based on reliable, independent, published sources with a reputation for fact-checking and accuracy.". I have no idea what the reputation of that web site is, and I don't want to bother converting it to a full citation if somebody else is going to remove it as not RS. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 18:42, 13 May 2022 (UTC)
    Do you agree with the assertion that SYSENTER is an assembly instruction to avoid interrupt overhead? Or do you think it's a dubious assertion? Timhowardriley (talk) 03:54, 14 May 2022 (UTC)
  2. Regarding should it be changed to a full citation? Sure. Timhowardriley (talk) 15:53, 13 May 2022 (UTC)
That's user generated content. It's not a reliable source. MrOllie (talk) 11:30, 16 May 2022 (UTC)

Does a signal cause a context switch?

[This thread was moved from above so it will be in its own section.] Timhowardriley (talk) 10:12, 10 May 2022 (UTC)

Followup: Do you agree that a signal causes a change from the currently running process? Timhowardriley (talk) 19:28, 8 May 2022 (UTC)

That depends on what you mean by signal. An interrupt need not cause a context switch. An IPC signal need not cause a context switch. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 00:06, 9 May 2022 (UTC)
Okay, this is the root of the problem. I have yet see in text that an interrupt may occur without a context switch. Also, I have yet to see in text that an IPC signal may occur without a context switch. Timhowardriley (talk) 17:26, 9 May 2022 (UTC)
The citation that you gave[6] does not the reference to a context switch.
An SVC interrupt in, e.g., OS/360, MVS, does not in general change the context. A SIGILL signal does not switch processes. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 23:04, 9 May 2022 (UTC)
I respectfully disagree. Tannenbaum clearly says on page 308, "Like the trap, the interrupt stops the running program and transfers control to an interrupt handler[.]" This is a context switch. I can't comment about the SVC interrupt because I have no reliable text to reference. However, I do know that OS/360 is retired. I will believe SIGKILL does a context switch until I see text saying it doesn't. Timhowardriley (talk) 03:09, 10 May 2022 (UTC)
Whoops! I read "SIGKILL" when you wrote "SIGILL". SIGILL is the malformed (illegal) machine instruction signal. It is intuitively correct to assume that a process with an illegal instruction will be switched out and aborted. Timhowardriley (talk) 10:12, 10 May 2022 (UTC)
Regarding a Supervisor Call (SVC) interrupt in MVS: Like my lack of comment on OS/360, I have no reliable source to reference. However, the burden is upon you to provide the reliable source for your assertions. If you have a reliable source that talks about MVS servicing an interrupt without peforming a context switch, then the article will benefit from your edits. Timhowardriley (talk) 10:12, 10 May 2022 (UTC)
Generally speaking, interrupts (AKA signals) consume many CPU cycles. Moreover, advancements in hardware have made what used to be an interrupt to no longer need to perform a context switch. For example, new processors support the SYSENTER assembly instruction. See https://wiki.osdev.org/SYSENTER . However, I surmise that SYSENTER is executed for only a subset of system calls. For example, getting the process ID of a parent process is a system call that currently performs an unnecessary context switch. For a parent process ID request, I surmise that system programmers are working to take advantage of SYSENTER and skip the context switch. Anyway, if you come across a reliable source describing SYSENTER, then the article would benefit from your edits. Timhowardriley (talk) 10:12, 10 May 2022 (UTC)
The first step should be splitting the text into separate sections for generic text and text specific to particular operating systems. As part of that, I would include references[7][8][9] for a lot more than just interrupt handling. Also, if you really want me to provide sources then stop removing the sources that I have provided. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 12:52, 10 May 2022 (UTC)
Regarding your references: What claim are you sourcing? What page supports your claim? Timhowardriley (talk) 16:11, 10 May 2022 (UTC)
Regarding "stop removing the sources that I have provided": What edits are you referring to? Timhowardriley (talk) 16:11, 10 May 2022 (UTC)
Regarding "MVS, does not in general change the context": Is it because of this claim that you reverted my edit here? As requested above, please support this claim with a reliable source, including the page number. Timhowardriley (talk) 16:18, 10 May 2022 (UTC)
The Wikipedia article context switch says, "A context switch can also occur as the result of an interrupt[.]" Timhowardriley (talk) 20:03, 10 May 2022 (UTC)
The key word is can; it doers not say that an interrupt always causes a context switch. In fact, the same articles also says When the system transitions between user mode and kernel mode, a context switch is not necessary; a mode transition is not by itself a context switch.. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 23:32, 10 May 2022 (UTC)
@Chatul:: So you agree that an interrupt can/may/might/willsometimes cause a context switch. Right? Timhowardriley (talk) 06:38, 12 May 2022 (UTC)
More precisely, I agree that an interrupt service routine can cause a context switch in at least three cases:
  1. The kernel runs in a special context
  2. The ISR imposes a delay on the current thread or process, e.g., a P operation on a busy semaphore.
  3. The ISR makes a higher priority thread/process eligible to run
I don't agree that the interrupt itself causes a context switch. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 09:48, 12 May 2022 (UTC)
As Chatul says, an IPC signal doesn't necessarily cause a context switch. It depends on how they're implemented. IIRC when a process sends a signal to itself via the raise() call it is unlikely there will be a context switch, for example. MrOllie (talk) 11:39, 16 May 2022 (UTC)

@Timhowardriley: I added a {{disputed}} tag, which User:Timhowardriley removed with the claim "Reverted edit b/c the tagged sentence correctly paraphrases the source text. The next sentence references context switch.". Actually, the next sentence does not mention context, but only state, e.g., registers. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 12:43, 11 May 2022 (UTC)

Your first tag bomb was a swing and a miss. Both authors are referring to context switches for interrupts. Please stop your disruptive editing. Timhowardriley (talk) 18:27, 11 May 2022 (UTC)
This is what you call civil discourse? You are the one engaging ion disruptive editing. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 09:48, 12 May 2022 (UTC)

References

  1. Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 388. ISBN 978-1-59327-220-3.
  2. Kerrisk, Michael (2010). "20.1 Concepts and Overview" (PDF). The Linux Programming Interface - A Linux and UNIX System Programming Handbook (PDF). No Starch Press. p. 388. ISBN 978-1-59327-220-3. Retrieved April 3, 2022. A signal is a notification to a process that an event has occurred. Signals are sometimes described as software interrupts.
  3. "Program-Event recording" (PDF). z/Architecture Principles of Operation (PDF) (Thirteenth ed.). IBM. September 2019. p. 4-26-4-46. SA22-7832-12. Retrieved May 4, 2022.
  4. 1 2 Hyde, Randall (1996). "Chapter Seventeen: Interrupts, Traps and Exceptions (Part 1)". The Art Of Assembly Language Programming. No Starch Press. Retrieved 22 December 2021. The concept of an interrupt is something that has expanded in scope over the years. The 80x86 family has only added to the confusion surrounding interrupts by introducing the int (software interrupt) instruction. Indeed different manufacturers have used terms like exceptions faults aborts traps and interrupts to describe the phenomena this chapter discusses. Unfortunately there is no clear consensus as to the exact meaning of these terms. Different authors adopt different terms to their own use.
  5. "Many texts refer to traps as software interrupts."[4]
  6. Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 308. ISBN 978-0-13-854662-5.
  7. OS/VS2 I/O Supervisor Logic (Sixth ed.), IBM, December 1978, SY26-3823-5; with OS/VS2 MVS Data Facility/Device Support Release 1 Enhancements Program No. 5740-AM7 (First ed.), IBM, December 19, 1980, LD23-0232-0;, TNL, IBM, December 30, 1981, LN28-4994 and TNL, IBM, October 25, 1979, SN28-44683.
  8. IBM System/360 Operating System - Fixed-Task Supervisor - Program Number 360S-CI-505 (PDF) (Third ed.). February 1967. Y28-6612-2. {{cite book}}: |work= ignored (help)
  9. IBM System/360 Operating System - MVT Supervisor (PDF) (Eighth ed.). May 1973. GY28-6659-7. {{cite book}}: |work= ignored (help)

Unethically misquoting a textbook

@Chatul: Abraham Silberschatz's textbook Operating System Concepts (1994) was misquoted with this edit. The Wikipedia editor moved a sentence from the article into page 105 of the textbook. Page 105 does not say, "An interrupt service routine may cause the central processing unit (CPU) to have a context switch." This is highly unethical. Please move the sentence from the citation quote back to the article. Timhowardriley (talk) 13:39, 13 May 2022 (UTC)

Please stop the insane accusations and enter into a civil discussion. I did nothing unethical, nor did I misquote anything. Unlike you, I'm not perfect, and failed to notice that the references belonged the middle of the sentence rather than the end --Shmuel (Seymour J.) Metz Username:Chatul (talk) 18:48, 13 May 2022 (UTC)
I'm sorry to have categorized your edit as unethical, if you are unaware of the result. Before your edit, Operating Systems Concepts (page 105) said, "Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. This task is known as a context switch." After your edit, the article erroneously claims page 105 says, "Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. An interrupt service routine may cause the central processing unit (CPU) to have a context switch." Please fix this. Timhowardriley (talk) 21:03, 13 May 2022 (UTC)
Please check my latest edit to verify that I correctly disentangled inline text from text quoted in the citation. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 17:48, 30 May 2022 (UTC)

Removal of IBSYS/IBJOB

@Maury Markowitz: An edit by Maury Markowitz on June 17 removed mention of IBM's IBSYS/IBJOB.[1][2] I believe that, due to their influence on GECOS and OS/360, IBSYS/IBJOB and the related PR155[3] were important milestones and should be mentioned. --Shmuel (Seymour J.) Metz Username:Chatul (talk) 21:16, 17 June 2022 (UTC)

I don't recall doing this, it must have been a fat finger. Maury Markowitz (talk) 21:47, 17 June 2022 (UTC)

References

  1. IBM 7090/7094 IBSYS Operating System - Version 13 - System Monitor (IBSYS) (PDF) (Eighth ed.). IBM. December 30, 1966. C28-6248-7. Retrieved June 17, 2022. {{cite book}}: |work= ignored (help)
  2. IBM 7090/7094 IBSYS Operating System - Version 13 - IBJOB Processor (PDF) (Second ed.). IBM. July 1965. C28-6389-1. Retrieved June 17, 2022. {{cite book}}: |work= ignored (help)
  3. IBM 1410/7010 Operating System (1410-PR-155) - Basic Concepts (PDF) (Fourth ed.). IBM. November 1965. C28-0318-3. Retrieved June 17, 2022. {{cite book}}: |work= ignored (help)

RS for influence of IBSYS/IBJOB on GCOS (née GECOS)?

Does anybody have a WP:RS for the influence of IBM IBSYS/IBJOB on GECOS? Shmuel (Seymour J.) Metz Username:Chatul (talk) 16:32, 18 December 2022 (UTC)

"Commodity operating systems" listed at Redirects for discussion

An editor has identified a potential problem with the redirect Commodity operating systems and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2023 January 24 § Commodity operating systems until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Steel1943 (talk) 16:36, 24 January 2023 (UTC)

Edit request 11

Please remove the unsourced "modes" section and replace the first paragraph of the "Kernel" section with the following text, which also covers modes:

Thanks Buidhe paid (talk) 07:09, 14 February 2024 (UTC)

I believe that it would be better to add sources to the existing text: some processors have more than two modes. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 14:00, 14 February 2024 (UTC)
I updated the text to mention that some OS have a different number of modes. However, according to Tanenbaum, most OS have two modes, so going into detail on other mode systems is likely UNDUE. The current text of the modes section is excessive detail for this article compared to the coverage of user/kernel/other modes in OS textbooks (just a couple paragraphs out of hundreds or 1000+ pages in those I consulted). Buidhe paid (talk) 04:51, 15 February 2024 (UTC)

Edit request 1

Please replace the current contents of the "security" subsection with the following:

Please add the following references to the "further reading" section:

Reasons: add refs, rewrite according to due weight in reliable sources, cover security concerns of open source operating systems

Thank you Buidhe paid (talk) 03:58, 2 February 2024 (UTC)

@Buidhe paid, these are a lot of changes. I admit I haven't reviewed it in detail, but at a glance it looks fine. Why exactly are you submitting a COI edit request? I understand you've declared a COI with regards to Anderson & Dahlin but you are not adding or removing any references to that book. I feel like you should just make this change directly to the article. Mokadoshi (talk) 08:59, 9 April 2024 (UTC)
ok, I will do that. Technically I have a COI because I received pay for these edits, but I am only asked to improve articles according to existing policy /guidelines. Buidhe paid (talk) 21:46, 9 April 2024 (UTC)


Edit request 3

Please add the following content directly after the lead:

  • Tanenbaum, Andrew S.; Bos, Herbert (2023). Modern Operating Systems, Global Edition. Pearson Higher Ed. ISBN 978-1-292-72789-9.

Reason: all OS textbooks that I was able to access started out by defining what an OS is and explaining its purpose. This section is missing in the current article. Buidhe paid (talk) 20:52, 2 February 2024 (UTC)

@Buidhe paid: Historically the term operating system has included a lot more than kernels, typically including unprivileged program such as commands, compilers and binders.
Also, the unpaide {{collapse bottom}} generates an extraneous }} line after the references. My reading of the documentation suggests that it wouldn't be appropriate even if properly paired with a {{collapse top}}. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 22:30, 2 February 2024 (UTC)
If you can improve on my text, please feel free to do so. I am just reporting what it says in the cited source. I cannot see any stray curly braces and if there were any, I assume the person implementing the request would disregard them. Yes, you need a collapse bottom to mark the end of the collapsed section, otherwise your comment would be collapsed too. Buidhe paid (talk) 22:46, 2 February 2024 (UTC)
Note: I checked a few more sources and tweaked the definition accordingly. Buidhe paid (talk) 00:05, 6 February 2024 (UTC)
Done Subwayfares (talk) 13:50, 23 May 2024 (UTC)

Edit request 4

Please change the section header titled "multitasking" to "concurrency". Reason: this is a more commonly used term in OS textbooks (see here for evidence).

Also, please change the content of the section (including the hatnote) to:

Reason: fix unsourced text and ensure that topics are covered according to their prominence in reliable sources (please see the summary of several OS textbooks on my sandbox talk page).

Thank you Buidhe paid (talk) 19:30, 3 February 2024 (UTC)

I have a few copy-editing comments, suggestions, and questions before I implement this one. I'm not a subject matter expert, so I want to be very sure that I'm not unintentionally making the information less accurate with these suggestions.
Let me know what you think. I'm happy to make changes as I implement the edit, or (maybe easier haha) you can adjust the original text for me to copy and paste. Subwayfares (talk) 14:24, 23 May 2024 (UTC)
Thank you for helping with these edits.
  1. This is an improvement, thanks
  2. Change encapsulating to encapsulate good catch
  3. Good fix
Buidhe paid (talk) 14:49, 23 May 2024 (UTC)
One last question as I start to put this together - In the deadlocks section, the sentence "The most common kind is a resource deadlock where multiple processes request the same resource that only one can have at a time." is commented out. Is there a reason not to include it in the article? Subwayfares (talk) 15:11, 23 May 2024 (UTC)
The obvious reason is that it's not true. A deadlock involves more than a single resource. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 15:54, 23 May 2024 (UTC)
Correct, it is one process holding resource 1 while requesting resource 2 while another has 2 and needs 1 (for example) Buidhe paid (talk) 19:10, 23 May 2024 (UTC)
Partly done @Buidhe paid: I added your concurrency content and section, but kept and indented the multitasking section, since it's a form of concurrency. See []. STEMinfo (talk) 23:12, 24 May 2024 (UTC)
Yes, "multitasking" is a word used for concurrency as it relates to multiple processes run by the OS on a single cpu, but I don't see why we need a new section about that when it is already most of the content covered under concurrency. Regardless of that, the older "multitasking" content is entirely unsourced, partly duplicates the content I added and has some undue details. Buidhe paid (talk) 00:10, 26 May 2024 (UTC)
Note that the nomenclature is not consistent; depending on the text, multitasking may refer to concurrent threads within a single application or to multiple applications running concurrently. Some of the same synchronization issues apply to both.  Preceding unsigned comment added by Chatul (talkcontribs) 01:53, 26 May 2024 (UTC)

Edit request 2

Please remove the top-level section on "real-time operating systems" (they will be covered under "types of operating systems") and change the content of the "Types of operating systems" section to the following:

Also, please add the following source to further reading:

Reason: fix unsourced text, add a concise summary of virtual machines. I removed the "Single- and multi-user" section because it duplicates information that is in the new "Concurrency" section. Buidhe paid (talk) 02:57, 10 February 2024 (UTC)

"Virtual machine" doesn't usually refer to an operating system. A system virtual machine is implemented by a hypervisor and whatever assistance is provided by the underlying platform on which the hypervisor runs; the hypervisor could be viewed as an operating system, the "applications" that run onto of which are themselves operating systems. (There are also process virtual machines, such as a Java virtual machine, but the software providing that virtual machine is generally not thought of as being like an operating system.) Guy Harris (talk) 07:47, 26 May 2024 (UTC)

Edit request 5

Please replace the current "Disk access and file systems" and "Disk drivers" sections with the following text under the heading "File system":

Reason: add sources, improve high-level explanation, harmonize coverage proprortionate to reliable sources. Giving disk drivers a separate section seems UNDUE given that they are only a couple paragraphs in some of the text books (A&D, Silberschatz et al.) and given no more than two pages (in Tanenbaum). Buidhe paid (talk) 00:41, 4 February 2024 (UTC)

Done Subwayfares (talk) 15:58, 23 May 2024 (UTC)
The mention of system calls sometimes being wrapped by libraries is not specific to those system calls that perform file system operations. System calls are mentioned in several paragraphs, and all of those may be wrapped by libraries. (In operating systems where the APIs are defined as higher-level-language procedure calls, they're typically wrapped by some library call, even if the wrapper is a small assembly-language wrapper around the instruction that performs the system call.) Guy Harris (talk) 08:15, 26 May 2024 (UTC)

Edit request 10

Please replace the current sections "Examples" and "Market share" with one section called "Popular operating systems", with the following content:

Reason: The only two OS textbooks with case studies have Linux and Windows, so if we're going to include a section with specific examples, that's probably the ones that should be there. This is a top level article and information about specific operating systems likely belongs in their own article or other subarticles such as comparison of operating systems. My version improves summary style and also fixes unsourced content issues. Buidhe paid (talk) 04:00, 7 February 2024 (UTC)

Or usage share of operating systems, which is a page that directly covers market share. Guy Harris (talk) 17:05, 26 May 2024 (UTC)

Edit request 8

Please remove the unsourced section "Networking". Reason: only one of the operating systems textbooks has a section on networking. I checked the source and it is a brief overview of networking in general, and does not cover how operating systems support networking (which makes up the current content of the section). Thus, I believe the section should be removed both for verifiability reasons as well as for being UNDUE. Buidhe paid (talk) 06:29, 5 February 2024 (UTC)

 Done TechnoSquirrel69 (sigh) 23:50, 29 May 2024 (UTC)

Edit request 7

Please replace the current content of the "User interface" section, after the hatnote and the image, with the following text:

Reason: the current section is UNDUE, as major operating systems textbooks lack a top-level chapter about user interface, and cover the topic briefly if at all. My version exploits summary style to improve conciseness, and also resolves the issue of uncited text. Buidhe paid (talk) 06:16, 5 February 2024 (UTC)

Retained mention of shell, and the distinction between computers in general and PCs in particular. Keeping both images seems unnecessary. Unclear which (if either) Buidhe paid wants to retain. Am inserting references provided above. Will update request to indicate completion upon addition of sources.--FeralOink (talk) 17:09, 24 May 2024 (UTC)
Added sources, removed KDE visual as new version is available and image isn't needed. Will wait to close out COI template until Buidhe paid confirms satisfaction or proposes corrections/further changes.--FeralOink (talk) 17:49, 24 May 2024 (UTC)
My understanding is that shell is just another word for an interface to an OS. I maintain that the rest of the content in that section is UNDUE based on coverage in overview sources of OS. If a picture is included in that section, it should be a GUI—the vast majority of coverage that does exist is about GUIs. Buidhe paid (talk) 02:05, 26 May 2024 (UTC)
The term "shell" originally referred to command-line shells; it dates back to at least this 1965 paper "The SHELL: A Global Tool for Calling and Chaining Procedures in the System" by Louis Pouzin, which is about a shell for Multics.
Microsoft speaks of the "Windows Shell" as part of the overall GUI; it doesn't appear to refer to the entire GUI.
In Unix-like systems - including even macOS - however, "shell" usually seems to refer to command-line shell, probably because of Unix's history, including its historical connection to Multics. However, "GNOME shell" refers to the GUI shell for the GNOME desktop environment, and "KDE shell" is also used for a GUI shell for the KDE desktop environment.
I think that neither solely providing an image of a command-line shell nor providing an image of a GUI desktop environment would fully represent the notion of a "shell"; perhaps no image should be provided, with the task of providing screenshot examples being left to shell (computing).
And I'm not sure what "GUIs may be implemented with user-level code or by the operating system itself." means. Most of the code for a GUI runs in user mode on most operating systems, but is provided as part of the "operating system" in the larger sense of "a platform atop which applications run" rather than "the kernel code that performs privileged tasks and manages low-level resources such as the CPU and memory". Graphical device drivers may run in kernel mode, as may some code about the driver layer, but, as far as I know, graphical widgets such as text boxes, scrollbars, buttons, and spinboxes, and window decorations, are implemented by code running in user mode.
"GUIs evolve over time, e.g. Microsoft modified the GUI for almost every new version of its Windows operating system" doesn't strike me as relevant here. It might be relevant on graphical user interface, but it's not obvious to me that it's really notable; anybody who's updated the OS on their personal computer, tablet, or smartphone is likely to have seen at least one update that changes the look or feel of the user interface.
"GUIs may also require a graphics card, including a graphics processing unit (GPU)." Does that refer to an add-on graphics card? It may have been true of early PCs, but wasn't true of the Macintosh or of workstation computers, as they had, at minimum, a frame buffer built in. The early ones didn't have a full-blown GPU - the Mac used the CPU to do all the rendering. This might be another detail best left to graphical user interface or some such page.
So, yes, removal of at least some stuff from that section might be a good idea. Guy Harris (talk) 08:59, 26 May 2024 (UTC)
Thank you for your review, Guy Harris! I had removed all the images except one. I will remove the one remaining bash screenshot per your comments about the history of shells and the fact that a shell might (UNIX command line) or might not (e.g. Windows; GUI shells for GNOME and KDE desktop environments) be the entire GUI. I was a UNIX user long ago. I DO believe it is important to make a distinction between personal computer and non-personal computer interactions with an operating system. (I think that is accomplished.)
I will gladly remove the sentence about Microsoft changing GUIs with each new version of Windows as it isn't well-sourced!
I will remove Buidhe paid's sentence about how GUIs are implemented per your comment.
You suggest removing Buidhe paid's sentence, "They are also supported by specialized hardware in the form of a graphics card that usually contains a graphics processing unit (GPU). (with reference)" because historically, this wasn't always the case. As of about 2010, dedicated GPUs were often on a graphics card. I will remove that sentence if you think it is too ambiguous thus best avoided (and also, because the GUI article should cover it in depth).
Guy, does this capture your comments and seem satisfactory for the User Interface subsection of this Operating System article?

"A user interface (UI) is required to operate a computer, i.e. for human interaction to be supported. The two most common user interfaces are

  • command-line interface, in which computer commands are typed, line-by-line,
  • graphical user interface (GUI) using a visual environment, most commonly a combination of the window, icon, menu, and pointer elements, also known as WIMP.

For personal computers (PCs), user input is typically from a combination of keyboard, mouse, and trackpad or touchscreen, all of which are connected to the operating system with specialized software.[139] PC users who are not software developers or coders often prefer GUIs for both input and output; GUIs are supported by most PCs. The software to support GUIs is more complex than a command line for input and plain text output.[141] Plain text output is often preferred by programmers, and is easy to support.[140]"

I apologize for not indenting the above passage, as I couldn't get the Wiki syntax to cooperate.--FeralOink (talk) 22:26, 1 June 2024 (UTC)
Thank you for further refinements, Guy Harris. I am now closing the request as accepted.--FeralOink (talk) 07:23, 4 June 2024 (UTC)
 Done--FeralOink (talk) 07:42, 4 June 2024 (UTC)

Edit request 9

Please replace the current content of the "History" section, including the hatnote, with:

Reasons: make it more concise, use summary style, fix uncited text Buidhe paid (talk) 06:58, 6 February 2024 (UTC)

Plugboards weren't really "code" in the sense of machine code, and punched cards weren't the only way machine code could be entered; punched paper tape was also an input medium.
Programming languages came along relatively early; assembly language dates back to some of the earliest computers, and even FORTRAN dates back to the IBM 704.
The IBM 704 and IBM 709, both vacuum-tube rather than transistor computers, are both referred to as "mainframes" on their Wikipedia pages, so I don't think it's clear that the introduction of transistors was a requirement for building mainframes. The FORTRAN Monitor System ran on the 709, so operating systems date back before transistorized computers.
All S/360s (other than the incompatible IBM System/360 Model 20 and IBM System/360 Model 44) may have been able to run OS/360, but not all did; many ran, for example, DOS/360, as OS/360 may not have run well on smaller machines.
I'm not sure OS/360 was the first OS to support multiprogramming. The PDP-6 Monitor may have been available before OS/360 and perhaps even before DOS/360 (at least some configurations of which supported multiprogramming, as far as I know - and those may have come out before OS/360 MFT or MVT), and was a time-sharing OS that not only supported multiprogramming but supported time-slicing. The Burroughs MCP came out even earlier than either of those and, as far as I know, supported multiprogramming as well.
The first computer terminals weren't really invented at that point. They were just Teleprinter, such as the Flexowriter and various Teleprinter from Teletype Corporation (Model 28, Model 33, Model 35, etc.), which were invented earlier, and put to use as computer terminals at that later time.
The Compatible Time Sharing System (CTSS) preceded Multics as a time-sharing OS. It may be more correct to speak of time-sharing systems in general as predecessors to both client-server and cloud computing, rather than just mentioning Multics in particular (other time-sharing OSes may not have had the term "information utility" used when discussing them, but I don't think that makes Multics special intuit regard).
UNIX wasn't a direct derivative of Multics. Some aspects of UNIX were inspired by Multics, such as the hierarchical directory structure and the notion of a command-line interpreter in which command names were file names for programs that implemented the command (although Multics ran commands within the same process, rather than creating a new process, as UNIX did).
System V and BSD weren't completely incompatible with, for example, Seventh Edition (V7) UNIX or UNIX/32V. There were some incompatibilities introduced, but most of the system library APIs and commands were V7-compatible. POSIX provided an interface that both SV and later BSDs were changed to support; it's a standard for more than just system calls, in the sense of "APIs implemented as simple traps to the OS kernel" - it also includes APIs such as getpwnam() and getpwuid(), which are mostly implemented in a user-mode library, although they do perform system calls to read from a file or send requests to or receive replies from a directory server.
What are the Intel chips in which MINIX is used? MINIX may have inspired Linus Torvalds to write the original Linux kernel, but Linux wasn't, as far as I know, based on MINIX.
Were the first microprocessors based on LSI or VLSI?
The first Macintosh computers did not run Mac OS X/OS X/macOS; they ran the classic Mac OS, which was not UNIX-based. Mac OS X only showed up in the early 2000s; it was developed from the BSD-basedNeXTSTEP. Guy Harris (talk) 10:31, 26 May 2024 (UTC)
I have checked some of the alleged inaccuracies and tweaked some to be accurate both to the source text and to what you are saying. I maintain that my version is much better than the current version because at least it is more concise and better sourced, which makes it easier to improve in the future.
As for some specific points:
  • My text The UNIX operating system originated as a development of MULTICS for a single user, is based on the source: Ken Thompson... found a small PDP-7 minicomputer that no one was using and set out to write a stripped-down, one-user version of MULTICS. This work later developed into the UNIX operating system. Perhaps there is a more informative concise phrasing, but I do not see how that is contradicted by what you are saying.
  • As for Minix use in intel chips, Tanenbaum et al says: "MINIX was adapted by Intel for a separate and somewhat secret ‘‘management’’ processor embedded in virtually all its chipsets since 2008." He also says that Linux "was directly inspired by and developed on MINIX". I'm not entirely sure what relationship "developed on" entails (he mentions file systems) but we can go with inspired if you prefer.
  • Were the first microprocessors based on LSI or VLSI? He does not mention VLSI
  • The source does not go into pre-MacOSX operating systems, and I have edited to clarify.
Buidhe paid (talk) 05:08, 3 June 2024 (UTC)
The first-generation computer history part of Tanenbaum and Bos just describes very early first-generation computers. Several things, including assembler languages, some early higher-level languages, and business data processing were provided by later first-generation computers.
Tanenbaum and Bos does not say that OS/360 was the first popular OS to support multiprogramming. What it says is

Despite its enormous size and problems, OS/360 and the similar third-generation operating systems produced by other computer manufacturers actually satisfied most of their customers reasonably well. They also popularized several key techniques absent in second-generation operating systems. Probably the most important of these was multiprogramming.

(emphasis mine).
They did, at least, mention CTSS when talking about time-sharing (although their claim about protection hardware not showing up until the third generation is better stated as that hardware becoming common in the third generation - the modified 7090s and 7094s used for CTSS had special custom hardware from IBM providing relocation and protection). That section should probably mention the term "time-sharing".
I'd ask for a citation from Tanenbaum and Bos on their claim that Thompson was trying to write a "stripped-down, one-user version of MULTICS" - that sounds like folklore rather than fact. Dennis Ritchie says, in The Evolution of the Unix Time-sharing System, that Unix came from their desire to "find an alternative to Multics" and, in The UNIX Time-sharing System�A Retrospective, that ia good case can be made that it is in essence a modern implementation of MIT’s CTSS system"] - note the "in essence", so he's not saying it's a version of CTSS (which it isn't). Thompson himself, in an article in the May 1999 issue of IEEE Computer, that "The early versions [of Unix] were essentially me experimenting with some Multics concepts on a PDP-7", which isn't as strong as "a stripped-down, one-user version of MULTICS".
"MINIX is used in controllers of most Intel microchips" is a too-vague version of what Tanenbaum and Bos said, which is that it's the OS for a management processor in Intel chipsets, separate from the CPU. See, for example, "The Truth About the Intel's Hidden Minix OS and Security Concerns" and "MINIX: ​Intel's hidden in-chip operating system". Guy Harris (talk) 08:40, 3 June 2024 (UTC)
A few historical notes
  • Honeywell had multiprogramming on the Honeywell 800, announced in 1958 and installed in 1960. And, yes, so did the MCP in 1961 on the B5000
  • CDC, GE and UNIVAC all had block relocation prior to the S/360. The B5000 had segmentation. Atlas had paging.
  • Yes, the PDP-6 supported multiprogramming
I'm not sure whether a reference to Stretch is needed; it announced multiprogramming earlier than some of the others but delivery was delayed -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 10:16, 3 June 2024 (UTC)
Yes, the PDP-6 supported multiprogramming And memory protection/address relocation. Guy Harris (talk) 17:04, 3 June 2024 (UTC)
Clearly you and I disagree on what the source intends to say. In my opinion, if something is already a feature of a popular product it cannot be popularized because it is already popular. I do think that more than a sentence or so on this issue is probably Undue Weight—the details on this belong in a different article. Would you be happy if I just took out the mention of multiprogramming? (t · c) buidhe 12:44, 4 June 2024 (UTC)
It makes more sense to move it earlier. Something like After the introduction of the transistor in the mid-1950s, mainframes began to be built. These still needed professional operators[1] but had rudimentary operating systems such as Fortran Monitor System (FMS) and IBSYS.[2] In the 1960s, vendors began to offer multiprogramming operating systems. In 1964, IBM introduced the first series of intercompatible computers (System/360)..
I'm not sure what to do about the Atlas and B5000; they were designed in the late 1950s but installed in the 1960s. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 17:10, 4 June 2024 (UTC)

References