Chapter 1 OS Notes
Chapter 1 OS Notes
CHAPTER-1
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 1
Tumkur
CS4TH3: OPERATING SYSTEM CHAPTER 1
The hardware consists of memory, central processing unit (CPU), and the input/output
(I/O) devices. It provides the basic computing resources for the system.
Operating systems can be explored from two viewpoints: that of the user and that of the
system
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 2
Tumkur
CS4TH3: OPERATING SYSTEM CHAPTER 1
The interrupt must transfer control to the appropriate interrupt service routine.
The routine would call the interrupt-specific handler. The interrupt routine is called
indirectly through the table, with no intermediate routine needed. Generally, the table
of pointers is stored in low memory (the first 100 or so locations).
These locations hold the addresses of the interrupt service routines for the various
devices.
This array, or interrupt vector, of addresses is then indexed by a unique device
number, given with the interrupt request, to provide the address of the interrupt
service routine for the interrupting device.
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 3
Tumkur
CS4TH3: OPERATING SYSTEM CHAPTER 1
Some systems go beyond graceful degradation and are called fault tolerant, because they
can suffer a failure of any single component and still continue operation.
Asymmetric multiprocessing:
Symmetric multiprocessing:
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 4
Tumkur
CS4TH3: OPERATING SYSTEM CHAPTER 1
1. If one processor fails, then another processors should retrieve the interrupted
process state so that execution of the process can continue.
2. The processors should support efficient context switching operation.
3. Multiprocessor system supports large physical address space and large virtual
address space.
4. The IPC mechanism should be provided and implemented in hardware as it
becomes efficient and easy.
Symmetric clustering:
Two or more hosts are running applications, and are monitoring each other.
This mode is obviously more efficient, as it uses all of the available hardware. It
does require that more than one application be available to run.
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 5
Tumkur
CS4TH3: OPERATING SYSTEM CHAPTER 1
An operating system provides the environment within which programs are executed.
One of the most important aspects of operating systems is the ability to multi-
program.
When two or more programs are in memory at the same time, sharing the processor is
referred to the multiprogramming operating system.
The operating system keeps several jobs in memory simultaneously (Figure 1.7).
This set of jobs can be a subset of the jobs kept in the job pool which contains all
jobs that enter the system.
Since the number of jobs that can be kept simultaneously in memory is usually
smaller than the number of jobs that can be kept in the job pool.
The operating system picks and begins to execute one of the jobs in memory.
The job may have to wait for some task, such as an I/O operation, to complete.
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 6
Tumkur
CS4TH3: OPERATING SYSTEM CHAPTER 1
executes, another job. When that job needs to wait, the CPU is switched to
another job, and so on.
Multiprogrammed systems provide an environment in which the various
system resources are utilized effectively.
Disadvantage:-
1. Multiprogrammed systems do not provide for user interaction with the
computer system.
2. To accommodate many jobs in memory, memory management is required.
Prepared by: Sharath Babu CG, Asst. Prof, Dept. of CSE, S.S.I.T, 7
Tumkur