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

    system. That is why one may have problems when booting from a floppy when a…

    • 3151 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    The process of how the subroutine works within an operating environment is as follows. While the main part of the program is running, there will be a call command sent to the CPU to tell it to stop wherever the program is at, store the W, Z and status along with where in the main program the CPU is at in the stack. Then the main program is cleared from memory and the subroutine is loaded for the CPU to start processing the code. Once the subroutine has finished, the subroutine code is deleted from memory and the CPU will load up the main program back on and will retrieve from stack the stored information (W, Z and status) which will allow the CPU know exactly where it needs to start from.…

    • 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

    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
  • Good Essays

    The article is about how Attorney General Ken Paxton was indicted and how his future looks bleak. The article talks about how Governor Rick Perry was indicted last year and how he came out looking like a hero. The same thing Attorney General Ken Paxton tried to do but it didn't work out so well for him. Rick Perry was Indicted because he vetoed funding for the Public Integrity Unit ,yet people had a different reaction for Rick Perry then for Ken Paxton. Rick Perry was cheered and all Ken Paxton can hear is silence from his supporters. Attorney General Ken Paxton was indicted for three different counts of security frauds last week. If he wanted people to support him, he should've given the supporters something to work with like a defense speech…

    • 478 Words
    • 2 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
  • 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
  • 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

    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