Hello Rkalyankumar,
The reasons specifically for Linux are explained in great detail as
part of the Linux Kernel Mailing List (LKML) Frequently Asked
Questions (FAQ) at:
http://www.tux.org/lkml/
Scroll down to section 15 (titled Programming Religion) and read the
explanation. A summary is:
- Linus started with an 386 computer, Minix, and gcc (no g++ available)
- C is used instead of Assembly for a LOT of reasons (maintenance,
readability, efficiency, ...)
- it is not clear how an object oriented language helps in OS design
- MANY years ago, they tried using g++ to compile the Linux kernel
and found it ran slower than when compiled with gcc (many thought it
should have been the same); they are not willing to do this again
- Linus makes the final decision and he's decided to stick with C
There is also another good explanation of some of the issues at
http://kerneltrap.org/node/2067
which describes one person's attempt to build adapt some C++ code to
incorporate into a kernel module.
For a historical perspective, Thompson and Ritchie developed Unix
using some of the concepts from Multics and CTSS
http://www.multicians.org/unix.html
including implementation of most operations in a higher order language
(Unix - C, Multics - PL/I), common naming of commands, etc. I also
refer you to
http://cm.bell-labs.com/cm/cs/who/dmr/hist.html
which describes the EARLY development of Unix including the conversion
from Assembly on the PDP-7 to C on the PDP-11 (near the end of the
paper).
Building from that basis, the Unix from AT&T that was widely
distributed and worked on by thousands of people was a C based
operating system. In the 1970's and 1980's, an alternative to AT&T's
distribution was developed at UC Berkeley, see
http://en.wikipedia.org/wiki/Berkeley_Software_Distribution
for a relatively short explanation of the development of BSD. The BSD
version eventually did not use ANY of the AT&T code base, but was also
implemented in C. At the end of the article is a list of several BSD
descendants including SunOS (now Solaris).
That is not to say that some applications are better implemented in an
OO language such as C++. There are several Graphical User Interface
(GUI) toolkits such as KDE which are implemented in C++. However,
there are applications that are better suited for a more procedural
language, and at this point operating systems are in that category.
If this answer is unclear or somehow incomplete, please make a
clarification request.
Good luck with your work.
--Maniac |
Clarification of Answer by
maniac-ga
on
14 Apr 2006 19:28 PDT
Hello Rkalyankumar,
With respect to database applications, many (but not all) of the
popular ones are written in C for the same types of reasons:
- developed on a Unix (or Linux) system
- developed many years ago when the "best" HOL for that kind of application was C
INGRES was an example of this heritage. There may be some recent OO
databases that buck this trend, but popular ones are primarily written
in C.
Database applications for other operating systems were written in the
"primary" language for that OS. For example, on Multics, MRDS was
written in PL/I
http://www.mcjones.org/System_R/mrds.html
Its pretty clear (though not quite certain) that System R, developed
by IBM which helped establish SQL as a standard query language (it was
called SEQUEL at that time...) was not written in C, but likely in
PL/I and/or assembly. See
http://research.microsoft.com/~Gray/papers/CritiqueOfIBM'sCSResearch.pdf
for a 1980 look inside of IBM's San Jose research lab which lists the
languages in use there (PL/I, Assembly, PL/S, and Pascal) and mentions
the development / use of System R.
Since C is the primary language used on Windows and Unix / Linux (and
those platforms represent most of the systems in use today), it is a
natural outcome that C was also used for data base applications on
those platforms.
--Maniac
|