bios booting process

30
Presentation#1 computer architecture and organization Topic: bios,boot,process,program loader and stack

Upload: taimoor-ashraf

Post on 14-Aug-2015

44 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: bios booting process

Presentation#1

computer architecture and organization

Topic: bios,boot,process,program loader and stack

Page 2: bios booting process

Group Members

Rabia rasheed FA13-BSE-010

Areeba akbar FA13-BSE-014

Ramsha kaif ul sehar FA13-bse-012

Page 3: bios booting process

Bios a set of computer instructions in firmware which control

input and output operations.

It also manages data flow between the computer's operating system and attached devices such as the hard disk, video adapter, keyboard, mouse and printer.

The fundamental purposes of the BIOS are to initialize and test the system hardware components, and to load a boot loader or an operating system from a mass memory device.

Page 4: bios booting process

Bios

Page 5: bios booting process

Boot To load the first piece of software that starts

a computer. A boot loader is a program whose task is to

load a bigger program, such as the operating system.

When the computer is powered on, it typically does not have an operating system or its loader in random access memory (RAM)

Page 6: bios booting process

Types of Booting There are two types of booting

1.Cold booting when the computer is started after having been

switched off.

2.Warm bootingwhen the operating system alone is

restarted(without being switched off) after a system

crash or 'freeze.'

Page 7: bios booting process

Boot process There are two boot processes.1. Boot priority2. Boot failure

1. Boot priority The boot priority is the order in which these

devices are search to find a valid bootable operating system.

2.Boot failure Boot failure means when you lose hard drive of

your computer.

Page 8: bios booting process

PROCESS

Page 9: bios booting process

What is process? Process is an instance of a computer program

that is being executed. It contains the program code and its current activity.

In UNIX , a process is started when a program is initiated.

An application that is being shared by multiple users will generally have one process at some stage of execution for each user.

Page 10: bios booting process

Example

Page 11: bios booting process

EXAMPLE (1)

Page 12: bios booting process

SUBPROCESS Child process

A child process in computing is a proces created by another process .

Parent process:

A parent process is a process that has created one or more child processes.

Zombie process:

A zombie process is a process that has occurs for child processes where the entry is still needed to allow the

parent process to read status once the exit status is read via the wait system call, the zombie's entry is removed

from the process table and it is said to be "reaped.

Page 13: bios booting process

Example of sub process

Page 14: bios booting process

Example(2)

Page 15: bios booting process

PROCESS STATE

In a multitasking computer system, processes may occupy a variety of states.

They are a useful abstraction for the understanding of processes.

Page 16: bios booting process

Process states

New Ready Runing Waiting Terminated

Page 17: bios booting process

EXAMPLE

Page 18: bios booting process

Process and Threads

Threads are used for small tasks, whereas processes are used for more 'heavyweight' tasks – basically the execution of applications.

Page 19: bios booting process

Differences

Threads Will by default share memory Will share file descriptors Will share filesystem context

Processes Will by default not share memory Most file descriptors not shared Don't share filesystem context

Page 20: bios booting process

TYPES OF PROCESS

Real time process: Process data immediatly.

Batch process: Process data automatically.

Online process: In this user interact direct with computer

Page 21: bios booting process
Page 22: bios booting process
Page 23: bios booting process
Page 24: bios booting process
Page 25: bios booting process
Page 26: bios booting process
Page 27: bios booting process

STACK

Stack is a storage structure that stores information in such a way that the last item stored first item retrieved

It is based on the principles of LIFO(last-in-first-out)

Page 28: bios booting process

Register stack A stack can be organized as collection of

finite number of register that are used to store temporary information during the execution of a programm .

Stack pointer Stack pointer is a register that hold the

address of top of element of the stack

Page 29: bios booting process

Memory stack A stack can be implemented in a random access memory (RAM)attached to a CPUThe starting memory location of the stack is specified by the processor register as stack pointer

Page 30: bios booting process