Preview

In Linux, the Flow of Control During a Boot Is from Bios, to Boot Loader, to Kernel. the Kernel Then Starts the Scheduler (to Allow Multi-Tasking) and Runs the First Userland (I.E. Outside Kernel Space) Program Init (

Better Essays
Open Document
Open Document
752 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
In Linux, the Flow of Control During a Boot Is from Bios, to Boot Loader, to Kernel. the Kernel Then Starts the Scheduler (to Allow Multi-Tasking) and Runs the First Userland (I.E. Outside Kernel Space) Program Init (
In Linux, the flow of control during a boot is from BIOS, to boot loader, to kernel. The kernel then starts the scheduler (to allow multi-tasking) and runs the first userland (i.e. outside kernel space) program Init (which is mostly responsible to run startup scripts for each runlevel), at which point the kernel goes idle unless called externally. init (short for initialization) is a program for Unix-based computer operating systems that spawns all other processes. It runs as a daemon and typically has PID 1. The boot loader starts the kernel and the kernel starts init. If one were to delete init without a replacement, the system would encounter a kernel panic on the next reboot.
In detail:
The BIOS performs hardware-platform specific startup tasks
Once the hardware is recognized and started correctly, the BIOS loads and executes the partition boot code from the designated boot device, which contains phase 1 of a Linux boot loader. Phase 1 loads phase 2 (the bulk of the boot loader code). Some loaders may use an intermediate phase (known as phase 1.5) to achieve this since modern large disks may not be fully readable without further code.
The boot loader often presents the user with a menu of possible boot options. It then loads the operating system, which decompresses into memory, and sets up system functions such as essential hardware and memory paging, before calling start_kernel(). start_kernel() then performs the majority of system setup (interrupts, the rest of memory management, device initialization, drivers, etc.) before spawning separately, the idle process and scheduler, and the Init process (which is executed in user space).
The Init process executes scripts as needed that set up all non-operating system services and structures in order to allow a user environment to be created, and then presents the user with a login screen.
On shutdown, Init is called to close down all user space functionality in a controlled manner, again via scripted

You May Also Find These Documents Helpful

  • Good Essays

    From a cold start, the ROM chip performs a POST to make sure that all the hardware is functioning properly. Then a bootstrap program is loaded from ROM. The bootstrap program is responsible for locating and loading the operating system or IOS. By default, the bootstrap program first looks in flash memory. If flash is empty, it broadcasts for a TFTP server to see whether the router can download in IOS. Finally, if both of these attempts fail, the bootstrap program loads the basic IOS located in ROM. After a fully functional IOS is loaded, it then looks for the startup configuration file. First, it looks in NVRAM. If NVRAM is empty, it broadcasts for a TFTP server. Finally, if neither place contains a startup configuration, the IOS provides an opportunity to enter setup mode. If the network engineer decides to exit setup mode, configuration commands can be entered…

    • 1170 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    It gets the information of number of tasks and the softwares required and puts it into a HashMap softwareTaskMap. In case, the number of tasks is more than the available resources that can perform the task, the system gets ready for a multiple execution.…

    • 464 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1330 Unit 6

    • 953 Words
    • 4 Pages

    Command “dmesg | less “ displays the kernel ring buffer messages which are recorded during the booting…

    • 953 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    7. Place the following steps of the Windows 7 startup process in their proper order C- Power-on self-test D- Initial startup phase A- Windows boot manager phase B- Windows boot loader phase…

    • 669 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 3

    • 3151 Words
    • 13 Pages

    What does all of this mean?For Linux users only one thing: that they must make…

    • 3151 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    An interrupt is used when you want to quickly get the chips (CPU) attention at hardware level for a short amount of time when the value set has been meet (this is great as this removes barriers as stated on matrixtsl.com, you can with your program wake the controller when it’s in a low power state which you can’t do at software level). An interrupt works when you are running a program on an endless loop and meets a certain condition set in the program, this triggers the interrupt which will tell the CPU at hardware level (quicker than software level) to go to the sub program and once finished processing the sub-program, it will return back to the main program.…

    • 645 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Cis 207 Week 2/3 Quiz

    • 383 Words
    • 2 Pages

    4. The computer operating system starts the “boot sequence” using information retrieved from the boot sector of a drive(this can be a HDD, USB stick, etc) True…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Is3440

    • 534 Words
    • 3 Pages

    to the kernel and how important aspects can be modified on the fly at anytime during the bootup process because it…

    • 534 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    8. When the system activates graphical.target (enters multiuser graphical mode; Fedora) or enters runlevel 5 (RHEL).…

    • 516 Words
    • 2 Pages
    Good Essays
  • Good Essays

    What is the name of the program that reads the settings in the Boot Configuration Data (BCD) file and manages the initial startup of the OS? Windows Boot Manager…

    • 602 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 1 Key Terms

    • 986 Words
    • 4 Pages

    Boot loader menu - A startup menu that gives the user the choice of which operating system to load such as Windows XP or Windows Vista which are both installed on the same system, creating a dual boot…

    • 986 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Unit 7 P6 Windows Xp

    • 1045 Words
    • 5 Pages

    Along with the core operating system and programs that Windows XP runs when it starts, there is also a host of services involved. Many of these services are necessary for Windows XP to operate correctly. However, many of them are for features in Windows XP that you may not use at all.…

    • 1045 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    paper

    • 362 Words
    • 2 Pages

    whether that application starts as a service on the system or must be run manually.…

    • 362 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    It 240 Appendix F

    • 260 Words
    • 2 Pages

    Kernel mode: Kernel mode (also referred to as privileged mode) operates on Ring 0 of the Intel 386 microprocessor protection model and has access to all hardware, memory, and has access to the other user’s address space. This mode includes access to the Windows NT family Executive Services, the hardware abstraction layer (HAL), and the Microkernel. (Regan, 2006)…

    • 260 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    School

    • 629 Words
    • 3 Pages

    whether that application starts as a service on the system or must be run manually.…

    • 629 Words
    • 3 Pages
    Satisfactory Essays