Skip to main content

Boot Process In Operating System

BOOT BLOCK :-
  Basically for a computer to start running to get an instance when it is powered up or rebooted it needs to have an initial program which is known as Bootstrap need to be simple. It must initialize all aspects of the system, from CPU registers to device controllers and the contents of the main memory and then starts the operating system.
  
  To do this job the bootstrap program basically finds the operating system kernel on disk and then loads the kernal into memory and after this, it jumps to the initial address to begin the operating system execution.
 
USE OF ROM :-
  For most of today's computer bootstrap os stored in ROM. Behind this there are following reasons :-
  
i > This location is good for storage because this place does not require any initialization and moreover location here it is fixed so that processor can start execution when powered up or reset.

ii > ROM is basically read only memory, hence it cannot be the computer virus. 
         The problem is that changing the bootstrap code basically requires changes in the ROM hardware chips. Because of this reason, most system nowdays has the tiny bootstrap loader program in the boot whose only job is to bring the full bootstrap program easily and the new version can be easily written onto the disk.

  Full bootstrap program is stored in the "boot block" at a fixed location on the disk.  A disk which has a boot partition is called 'boot disk". The code in the boot ROM basically instruct the read controller to read boot blocks into the memory. And then starts the execution of code. 


  The full bootstrap program is more complex than bootstrap loader in the boot ROM, it is basically able to load the complete operating system from a non-fixed location on disk to start the operating system running, even though the complete bootstrao program is very small.
 
  So we discussed above that the boot code present in ROM, is responsible for read the full bootstrap program, which is present at disk on boot blocks. The window system places its boot code in the first sector of its harddisk, which it terms master boot recoed (MBR\).

  Now, when system is terned on there is a special programs BIOS stored in ROM contains the boot code, by executing which, the CPU access the very first partition of harddisk i.e MBR. It contains partition table for all partition on harddisk.

  MBR contains the information about where the operating system is being stored and it also contain a program which can read the boot sector record of the partition. Hence  th CPU fetches all this informations and load the operating system into the main memory.

BAD BLOCKS :-
   A bad block is an area o storage media that is no longer reliable for storing and retriving data because it has been physically damaged or corrupted. Bad blocks are also refered to as bad sector. A soft, or logical, bad block occurs when the operating system is unable to read data from sector.

Share, Follow and please comment if you find anything incorrect or to share more information about the topic discussed above.
  

Comments

Popular posts from this blog

Process Scheduling And Types of Process Schedular :-

        ⇰ PROCESS SCHEDULING Process Scheduling  is a task  of Operating System that schedules processes of different states like new, ready, waiting, terminated  and running.This scheduling helps in allocation of CPU time for each process, and Operating System allocates the CPU time for each procss. And the process scheduling plays important role to keep the CPU busy all the time.  ⏩   Followings are some objectives of Process Scheduling :-  i > To increase the amount of users within acceptable response times.  ii > To maintain the balance between response and utilization of system. iii > To decrease the enforce priorities and  give reference to the processes holding the key resources.      ⇰  PROCESS SCHEDULAR A scheduler carries out the pro cess scheduling work. Schedulers are often implemented so they keep all computer resources busy and  allows multiple users to share system resources  to achieve  multiprogramming .  There are  mainy three types of pro

Process & Its state And process control block :-

                ⇰  PROCESS :- A process can be thought of as a program in execution. Means when any program is executed it becomes process. A processwill need certain resources such as CPU time , memory, files and I/O devices to complete its task. These resources are allocated to the process either when it is created or at the time of execution.             A process is the unit of work in most systems. A system consistes of a collection of processes. All these processes may execute concurrently. Traditionally a process contained only a single thread. Most modern operating ststems now supports processes that have multiple threads.         The operating system is responsible for several important works of process management as - the creation and deletion of process, the schrduling of process, communication and deadlock handling of process. Process is broudly divided into two types:-  i> System  Process. ii> User Process. Early computers allowed only one program be ex

Semaphores In Process Synchronization

   ⇰  Semaphores :-   Semaphore is actually a method or tool to prevent race condition. Race condition can cause loss of data or even deadlock situation. For prevention from these conditions, the semaphore is one of the method.  Semaphore was proposed by Dijkstra in 1965. Simaphore    is a very significant technique to manage concurrent processes.  Semaphore is useful tool in the prevention of race condition. But the use of semaphore never means a guarantee that a program is free from these problems.     Semaphore is an integer variable which is used in mutual exclusive manner by various concurrent cooperative processes in order to acheive synchronization. Hence semaphore is one of the way to achieve synchronization.  Semaphore is basically  a variable which is non-negative and shared between threads. This variable is used to solve the critical section problem and to achieve process synchronization in the multiprocessing environment. Semaphore contains some operations as f