operating systems. definition an operating system is a collection of programs that manage the...

25
Operating Systems

Upload: alexandra-clarke

Post on 13-Jan-2016

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Operating Systems

Page 2: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Definition

An operating system is a collection of programs that manage the resources of the system, and provides a interface between the user, the hardware, and the applications.

Page 3: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Types of Operating Systems

Simple device control embedded on a ROM chip

Complex Windows NT Unix, Etc.

Page 4: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Complex Operating Systems

Consist of multiple programs

The Kernel is the core of the operating systems.

Page 5: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Kernel

The kernel is responsible for:

Device control Memory management Scheduling Inter-process communication Processing of interrupts and exceptions.

Page 6: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Single vs. Multiple Processor

Single Processor can only run one instruction at a time.

It gives the appearance of multi-tasking with switching.

Page 7: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

2 Types of Switching

Co-Operative Switching

Pre-Emptive Switching

Page 8: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Co-Operative Switching

In co-operative switching the task which is currently running must voluntarily give up the processor for the next process to run.

Page 9: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Problem with Co-Operative Switching

If first process “hangs up” and does not give up control the computer freezes. No other task can run.

Page 10: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Pre-Emptive Switching

In pre-emptive switching the task that is currently running is forced to give up control after a certain period of time. If a task “hangs” it does not stop subsequent task from running.

Page 11: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Pre-Emptive Switching is“Better” than Co-Operative Switching

Page 12: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

16-Bit vs. 32-bit

32-bit programs use pre-emptive switching.

16-bit program use co-operative switching and are more susceptible to “freezing”.

Page 13: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Context Switching

The process of switching from one task to another is called “Context Switching”.

Page 14: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Scheduling

Scheduling is the process of deciding which task should run next.

Page 15: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Time Slice

The amount of time that a process runs before giving up control is called time slice or quantum period.

Page 16: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Co-Operative Processing

In co-operative processing the processes are generally arranged such that as the top process is completed each task moves up one place.

Page 17: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Pre-Emptive Scheduling Pre-emptive scheduling uses a real-

time clock, which generates interrupts at regular intervals. Each time an interrupt occurs the processor is switched to another task.

Generally tasked are assigned a priority in pre-emptive scheduling.

Page 18: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Multiprocessor vs. Multiprocessing

A multi-processor computer is a computer with more than one processor.

Page 19: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Categories of Multi-Processor Computers

Shared memory multi-processor

Distributed memory multi-processor

Page 20: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Shared Memory Multi-processor

Shared memory multi-processors have multiply CPUs, and they all share the same memory.

Communication between the processors is easy to implement, but care must be taken to synchronize memory access.

Page 21: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Distributed Memory Multi-Processors Also has multiple CPUs, but each

CPU has its own memory. In distributed memory multi-

processor memory synchronization is not a problem,

but communication between the processors is often slow and complicated.

Page 22: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Related to Multi-Processors

Networked Systems

Distributed Systems

Page 23: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Networked Systems

Networked systems consist of multiple computers, networked together. Users are aware of the different computers that make up the system.

Page 24: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Distributed Systems

Distributed systems also consist of multiple computer but unlike the networked system the various computers are transparent to the user.

Page 25: Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between

Operating System A computer is a set of resources for

the movement, storage, and processing of data.

The operating system is responsible for managing these resources scheduling the other programs and providing the user interface.