Skip main navigation

Starting up the Operating System

Learn what determines how quickly your operating system is loaded when you start your computer.

When your computer has completed the startup sequence, the BIOS passes control to the operating system. Operating systems control the computer’s resources, software, and hardware. Examples of common operating systems are Windows 10, macOS, Linux, Android, and iOS.

In this step, we are going to look at some factors that affect the speed and performance of the operating system, particularly during start-up.

CPU Speed

Clock

Inside the CPU there is a “clock” that ticks back and forth from high voltage to low voltage in a very precise time. At its very basic level, a CPU is dealing with binary instructions and data. Most CPUs work on 64 bits at a time. It is important that all 64 bits are processed at exactly the same time. This is why the CPU has a clock, it keeps everything in sync.

Every time the clock “ticks” or pulses, an instruction can be carried out. Though some instructions can take multiple pulses to complete.

Clock speed is measured in hertz, a unit of frequency, representing how many times the clock pulses per second. Computer speed is described in gigahertz (GHz). There are one billion (1,000,000,000) hertz in a gigahertz.

A typical clock speed on a PC runs from 1GHz to about 3.8GHz.

My computer’s clock speed is 1.6Ghz. So in theory my CPU can carry out one point six billion instructions per second. That’s one instruction after the other. The CPU does not carry out multiple instructions at the same time.

The faster the clock speed, the faster the startup.

Cores

Modern CPUs can have multiple cores, which can run multiple instructions at the same time. A computer with two CPU cores is called a dual-core CPU. So the operating system can send an instruction to each core, and the instructions will be done at the same time. This can increase the speed of your system.

However, more cores do not always mean more speed. It depends on the task being completed. Some tasks have instructions that can run in parallel. Other tasks require the previous instruction to be completed before the next instruction starts. Calculating the factors of a number is an example of a task that can be run in parallel. A factor is a number that divides into another number exactly and without leaving a remainder. For example, 4 and 3 are factors of 12. The instructions for the factors of 24 can be sent to different cores to get quicker answers because each task is not dependent on another task being completed:

Instruction A 24 / 2

Instruction B 24 / 3

An illustration of a CPU with two cores. Core 1 is executing instruction A, core 2 is executing instruction B

However, the Fibonacci sequence has to be run in sequential order. In the Fibonacci series, each number is the sum of the two preceding ones. So you need the two previous answers to calculate the next result. You can’t run them in parallel. In the example below, you cannot work out F3 until you have F2. So you can’t send Instruction B to one core at the same time as Instruction A.

F0 = 0
F1 = 1

Instruction A. 
F2 = F0 + F1
0 + 1
1

Instruction B. 
F3 = F1 + F2
1 + 1
2

An Illustration of the steps above to calculate terms in the Fibonacci sequence

The more cores you have, the faster your CPU will perform certain actions. This includes the startup sequence.

Disk Speed

The speed of your hard drive will affect your operating system. Remember the hard drive stores your operating system and loads it into the RAM on startup. The speed that your hard drive can do this affects the start-up. Total disk speed is measured in megabytes per second. There are 1,000,000 bytes in a megabyte.

Hard drives store data on spinning disks, and reads/writes data on them using an arm with a magnetic head.

Solid-state drives are faster than hard drives and will start up a machine quicker. This is because they have no moving parts. There is no delay in waiting for records to spin and for the needles to move.

We’ll look at these devices in more detail next week.

RAM

The operating system runs in RAM. The speed of the RAM itself is how fast it transfers data. It is measured in megahertz. How fast the RAM works greatly depends on its cache and its size, not just its own speed.

Cache

A cache is a piece of memory that stores data locally to speed up data retrieval. Web browsers use cache to store data from a web page that doesn’t change often.

For example, your computer doesn’t retrieve the logo and background from Twitter each time you visit the website. Your browser stores these locally and displays them when you load the Twitter page.

An illustration of how a cache is employed. On the first visit to Twitter, all of the website is downloaded and displayed. The user's profile pic, the Twitter logo and the background colour are stored in the cache on the hard drive. On the second visit, the website (with new messages) minus these elements is downloaded, and then combined with the elements from the cache to give the full site.

A disk cache is a dedicated block of memory in RAM that bridges storage and CPU.

When the operating system reads a file from the hard drive, the cache takes a larger block of data than is required. If the operating system needs more data, it will check the cache in the RAM first to see if it’s already available. This saves reading from the slow hard drive again.

The RAM has its own cache, commonly called L1 and L2. These are physically located on the CPU and are even faster than normal RAM.

Size

The size of your RAM can affect speed. If there is insufficient space in the RAM, your operating system will store temporary data in the Hard Drive. This is much slower than storing data in the RAM. So the more RAM you have the faster your operating system can be.

Other Factors

Other minor factors affecting your computer’s performance on startup include:

  • What you have plugged in.
  • Network connections.
  • Software that opens on startup.

Discuss

  • Can you find your computer’s clock speed and core count?
  • How many instructions could your computer theoretically carry out per second?

 

This article is from the free online

Understanding Computer Systems

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now