Re: A basic question about running a program

From: osmium (r124c4u102_at_comcast.net)
Date: 04/07/04


Date: Wed, 7 Apr 2004 07:00:15 -0700

Tony Johansson writes:

> I'm reading a book about C++ and in this book it says something that might
> be wrong.
> The question has nothing specific with C or C++ to do. It's more general
> understanding.
>
> The book says "the operating system is a program that is always running
when
> no user defined program is running". But I think that's wrong I think that
> the operating system is running even if your used defined program is
> running.
>
> Don't you out there agree with me.

I guess I see your point. But it needs some fussy definitions to resolve
this. A particular computer is going to select one instruction to do next.
Did that instruction come from a user program or from the operating system?
Perhaps if you think of the user and OS as being "interlaced" it might
clarify things. Bottom line it comes down to what does "running" mean?



Relevant Pages

  • Re: Serial Port Programming
    ... that's going to depend on the operating system and the system ... Even if you use the slowest defined protocol, SAE J2411 Single Wire, ... you'd have to react within 1000 cycles. ... going to be using a CISC instruction architecture which takes several ...
    (comp.sys.sgi.admin)
  • Re: Question - about "nn-bit" and instruction "speed"
    ... the only hardware and operating system that I ever came CLOSE to ... > independent of "addressing mode". ... > instruction location is reflected by RMODE. ... > don't understand it for "instruction processing". ...
    (comp.lang.cobol)
  • Question - about "nn-bit" and instruction "speed"
    ... I do NOT claim to understand *any* hardware or operating system at any depth. ... independent of "addressing mode". ... instruction location is reflected by RMODE. ... Does any of this have to do with the IBM mainframe "PSW" changes in 64-bit mode? ...
    (comp.lang.cobol)
  • Re: List of instructions by architecture level?
    ... available by testing the level of the operating system in the CVT. ... or could issue the STFLE instruction ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: How do I determine which processor I am running on (alpha SMP)?
    ... I kind of figured it was stored in the operating system somewhere but ... I was hoping there would be an instruction or PAL routine or ... The SYS$GETJPI system service can give ...
    (comp.os.vms)