Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #10039

Re: OS Design thinking in objects?

From "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Newsgroups comp.programming
Subject Re: OS Design thinking in objects?
Date 2019-07-03 10:52 +0200
Organization Aioe.org NNTP Server
Message-ID <qfhqd9$2gl$1@gioia.aioe.org> (permalink)
References <77714daf-c2c3-4bc0-b547-5bd2939c562e@googlegroups.com>

Show all headers | View raw


On 2019-07-03 01:12, G G wrote:
> my question has to do with thinking in terms of
> objects when it comes to writing an OS.
> 
> would one using an OOPL think of
> the CPU, Processes, Scheduler, drivers, etc
> 
> in terms of objects. like
> the CPU is a class with data members (maybe the registers and
> alike) and member function ( the thing that it does )

In fact it was always this way. If you take a look at the design of 
drivers even in the most early OSes written in Assembler, they expose OO 
design with typical OO methods. E.g. read/write driver entry points used 
to dispatch to the actual driver's implementation etc. This is what in 
OO is called "dynamic polymorphism". HAL abstracts CPU in a much OO way etc.

What did not happen, due to the Dark Ages we were plunged into thanks to 
the C/UNIX/Windows triade, is OO OS API. In particular, getting rid of 
files and using fully typed persistent memory-resident objects with 
corresponding methods instead of untyped read/write mess never happened.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

OS Design thinking in objects? G G <gdotone@gmail.com> - 2019-07-02 16:12 -0700
  Re: OS Design thinking in objects? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2019-07-03 10:52 +0200
    Re: OS Design thinking in objects? Horizon68 like Menz <cdalten@gmail.com> - 2019-07-03 05:16 -0700
      Re: OS Design thinking in objects? Horizon68 like Menz <cdalten@gmail.com> - 2019-07-03 05:17 -0700
      Re: OS Design thinking in objects? G G <gdotone@gmail.com> - 2019-07-03 14:45 -0700
        Re: OS Design thinking in objects? Horizon68 like Menz <cdalten@gmail.com> - 2019-07-04 16:25 -0700
    Re: OS Design thinking in objects? G G <gdotone@gmail.com> - 2019-07-03 14:43 -0700
      Re: OS Design thinking in objects? nobody@example.org (Scott) - 2019-07-04 17:45 +0000
      Re: OS Design thinking in objects? Richard Heathfield <rjh@cpax.org.uk> - 2019-07-04 19:15 +0100

csiph-web