LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 04-07-2004, 05:00 PM   #1
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Rep: Reputation: 30
A question about the difference between Linux and Windows Kernels


HI,

I've been using Linux for some time and am no where near an expert. However, there is a question I've been meaning to ask for quite some time.

Using Linux , you get to know that the Linux kernel is modular i.e. modules are only loaded into the kernel when needed. My question is: Is this how Windows works too, or is it the case that everything is loaded into Windows from the boot?

Also, another question that is related to this (I think) is again concerning the difference between the two systems: In windows, if you don't have a driver for a new piece of hardware, you just install it. It's quite easy. However, in Linux, if the kernel wasn't compiled with support for the hardware in question, then as far as I can see, there is no way to get the hardware working unless you recompile the kernel. Isn't this a massive drawback of the Linux system? In short, how does Windows allow you to install new drivers without having to recompile the kernel?


Sorry if these questions seem dumb, it's just that they have been bothering me for some time.

Thanks

Ludwig
 
Old 04-07-2004, 05:12 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Asking how the Windows kernel works, well.. probably no one really knows except the developers in which I'm sure they have NDA to not discuss or share this information since the software and code is proprietary.

On a side note, this is being moved as its more suitable in General..
 
Old 04-07-2004, 05:14 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you pretty much answered yourself there... the windows kernel acts in a modular way because you install your soundcard modules and network modules seperately and they then get loaded... very similar really. the Win32 kernel is not a microkernel though, like Gnu/Hurd is, some is in it, some is outside of it.

as for the compatability issue.. well that's basically the start of another very tired debate. you ever wondered why say... via have a version of their drivers for 95/98/me and one for 2k/xp ? pretty similar reasons, it;s just that the flexibilty to think those issues might occur in the first place are not present in windows. stick with a standard distro and you'll get a rebuilt RPM that you should be able to install just as easy as in windows.
 
Old 04-07-2004, 05:17 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Okay... in linux, you can load, and unload Drivers (kernel modules) as you see fit.
in windows you cannot. it is done dureing boot time, which is why in windows you need to re-boot if you make a change to a driver / hardware, or install a new driver.

as for the part about the drawback in the linux system.. NO
it is exactly the same in windows !!!!

the thing is... there are many many many many different linux kernel versoions in use out there. each distro uses different compile options, new kernel versions come out every 5 minutes. some users compile there own kernels.

so its practically impossible to make a driver for every possible kernel, which is why unless you have a very common kernel. (e.g. redhat 9 default) you need to compile yourself.

in ms windows, there are far fewer kernels...
to my knoledge there are 3.

windows 9x/ME
Windows NT/2k
Windows XP

which is why when u download a driver from the internet under windows, you have to select windows 9x/ME windows NT/2k or windows XP

it is not a draw back of the linux kernel, its just a side effect of having such regular upgrades available.... which i think is a good thing. and well worth the extra few minutes in installing drivers.
 
Old 04-07-2004, 05:17 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by acid_kewpie
well you pretty much answered yourself there... the windows kernel acts in a modular way because you install your soundcard modules and network modules seperately and they then get loaded... very similar really. the Win32 kernel is not a microkernel though, like Gnu/Hurd is, some is in it, some is outside of it.

as for the compatability issue.. well that's basically the start of another very tired debate. you ever wondered why say... via have a version of their drivers for 95/98/me and one for 2k/xp ? pretty similar reasons, it;s just that the flexibilty to think those issues might occur in the first place are not present in windows. stick with a standard distro and you'll get a rebuilt RPM that you should be able to install just as easy as in windows.
Maybe that's why you have to reboot after installing most drivers though, its smart enough to auto compile the kernel..
 
Old 04-07-2004, 05:18 PM   #6
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Hmm. None of you looked at the leaked source code?
 
Old 04-07-2004, 05:19 PM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
i cant be bothered to look for it....
and there are so many false files drifting around p2p.

what, tell us what you have leanred by reading the source ?
 
Old 04-07-2004, 05:24 PM   #8
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Dude, I have a 56k at best. Think I can be downloading 700 mg files? Hell, it takes me an hour to get a 5 mb file. At school I could try, but it would take hours upon hours of searching. I wish someone would host it, but that would cost a fortune
 
Old 04-07-2004, 05:27 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Let me remind everyone if you did see the source code or obtained it, do not post it here or the such. We don't associate in such matters as its against our rules.
 
Old 04-07-2004, 05:33 PM   #10
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Would be a hellova post considering it is 700 mb tricky.

Besides, I think the MAIN diffy between the linux and windows kernels is the fact that linux users KNOW that a kernel exists, if not what it does. The average windows user has no clue what a kernel is, and doesnt even know his OS has one.
 
Old 04-07-2004, 05:34 PM   #11
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Hey ludwig W... You don't need to recompile your kernel for each driver you want to be loaded. What you need is the source code of your actual kernel 'cause then the driver module can be compiled against your kernel. Not the whole kernel itself gets compiled. Only if you want it to be a kernel built-in feature, 'cause then you'll need to patch your kernel source and recompile it. Problem most of drivers come within the kernel tree, so it's preferable to have it as a native kernel moduleor built-in feature then to download a third party module... (although it IS better to use the nVidia's module then the kernel module for nvidia gfx boards). Think this might clarify the matter
 
Old 04-07-2004, 05:36 PM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Pauli
Besides, I think the MAIN diffy between the linux and windows kernels is the fact that linux users KNOW that a kernel exists, if not what it does. The average windows user has no clue what a kernel is, and doesnt even know his OS has one.
Most I know from doing monkey tech support for several years think they are running Internet Explorer 6.0 or OfficeXP... they can't simply tell you what OS it is, even when they see the logo each time it boots up every day...
 
Old 04-07-2004, 05:41 PM   #13
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
thanks frandalla...that does clarify things somewhat.
 
Old 04-07-2004, 05:54 PM   #14
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
As to looking at leaked code, why bother? There would never be any way to confirm it's authenticity short of compiling and test running a whole version, no? So why bother?
 
Old 04-07-2004, 06:07 PM   #15
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
ludwig W: And looking at signature, I see kernel 20.4-8.... your kernel probably is 2.4.20.4-8
you should type uname -r to get your kernel's version
if you type uname -a you'll get a whole lot of information about your system build...
man uname for more info...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Kernels shag Debian 2 06-10-2005 10:04 PM
Difference in Debian Versions of Kernels SSTwinrova Debian 3 03-20-2005 05:18 PM
Kernels in Linux and Windows tuxombie General 2 01-08-2005 07:59 AM
difference between c++ in windows and linux gtgoku Slackware 4 10-26-2003 09:23 AM
Help?! What's the difference between kernels?! bluceree Linux - Software 2 05-19-2003 09:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration