Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Why Linux boot and shutdown faster than Windows

$
0
0

Do you ever wonder why linux based operating systems like Ubuntu,Linux Mint,Elementary OS,Kali Linux etc boot and shutdown faster than windows operating system ?

No!

In this article we are going to break down it for you.

Also Read : How To Uninstall Linux Or Windows From Dual Boot System

Why Linux Boot Faster than Windows ?

First we are going to discuss why Linux boot faster than windows .

A lot factors affect the boot time of both Linux and Windows. Some of the notable reasons are :

Kernel :

Kernel is the nucleus of an operating system.It has complete control over everything that occurs in the system.

Linux Kernel is monolithic ― means it holds all functionality,even drivers ,memory management, task scheduler and file system. So while booting Kernel loads all these functions at once.

And Windows NT kernel is like a micro-kernel which only holds basic features during boot process, then loads other functions,drivers and file systems. Which makes Windows to boot a bit slower than Linux.

Services and Programs :

In Windows many services auto-starts during start up along with many programs like Antivirus which makes booting process slow. While in case of Linux it is limited.

Backward compatibility :

Backward compatibility allow software system tosuccessfully use interfaces and data from earlier versions of the system or with other systems.

And Windowshave long history and they support old software frameworks, so during boot time Windows have to load theselibraries to make the Windows experience smoother.

WhileLinux distributions doesn’t have backward compatibility feature.

Fragmentation :

Fragmentation meansthe storing of a file in several separate areas of memory scattered throughout a hard disk.

In Windows files are fragmented. So hard disk takesmore time for read and write during start up. And also when you installs more programs in Windows,then system takes more time to load. You can notices these bydelay in boot time with new and used Windows system.

And in Linux filesystem used is EXT, which doesn’t requires fragmentation. Because Linuxallocates files in a more intelligent way. Instead of placing multiple files near each other on the hard disk, Linux file systems scatter different files all over the disk, leaving a large amount of free space between them. So read and write during start up is faster.

Desktop Environment :

Another main reason behind faster Linux boot is its Desktop Environment (DE). Which is quite faster than Windows.

Also Read : 5 Things to do before dual booting Linux with Windows

Why Linux Shutdown Faster than Windows ?

Now we are going to discuss why Linux shutdown faster than Windows.

Services in Windows delays shutdown :

During Windows shutdown, most services will generate at least one event on terminating. Sometimes each service may have many events.

Eg “NTP Service terminating”, “Printer Driver got signal to terminate”, “Printer Driver is flushing the queue” “Printer Driver Exiting”. These Events are “objects” and are slow to create and destroy, which adds up to shutdown time.

However, during shutdown on Linux, most processes simply print a line on the console or/var/log/messages and exit.Which makes a smoother shutdown.

Cache :

Windows may cache many things and these caches have to be flushed to filesystem on shutdown. But caches are handled better in Linux, with periodic “fsync” executions, on better filesystems.

GUI :

Graphical User Interface (GUI) in Windows saves a lot of state informationmost of which is stored as objects. Which affect shutdown time.

While in case of Linux, Command Line Interface (CLI)has almost nothing to save, except for the shell history file. Most state information is in simple text files.

Process & Programs :

Like services, some process and programs in Windowsa lot more time to exit during shutdown and it will hung up and sometimes we have to forcibly terminate the task.

And Linux takesless time to each process to exit, and most programsmay respond quickly and exit faster during shutdown.

However unlike previous Windows versions, Windows 10 some what improved its boot and shutdown time but still doesn’t faster than Linux.

Also Read : Do you know why real hackers prefer Linux distro over other OS


Viewing all articles
Browse latest Browse all 11063

Trending Articles