Flip Class: Task Process Multiprocessing Multitasking
Flip Class: Task Process Multiprocessing Multitasking
FLIP CLASS
(MODULE-5)
• TASK
• PROCESS
• MULTIPROCESSING
• MULTITASKING
CONTENT:
• Task
• Process
• Process Structure
• Process states and its transitions
• Process Management
• Multiprocessing
• Multitasking
• Multitasking VS Multiprocessing
• Types of Multitasking
TASK & PROCESS
•Task- The job/activity, and associated goals, that user whishes to accomplish while
using the interface.
•Process
•a program in execution.
•process execution must progress in sequential fashion.
•A process includes:
•program counter
•stack
•data section
PROCESS STRUCTURE
• What is multiprocessing ?
• The use of two or more CPU’s within a single system.
• It can be termed as execution of multiple concurrent
processes, with each running on a separate CPU or core. It
is a true parallel execution of multiple processes.
• Processor symmetry or Symmetrical Multiprocessing:
• A multiprocessor computer hardware & software
architecture where two or more identical processors are
connected to a single, shared main memory.
MULTITASKING
• Multitasking, in an operating system, is allowing a user to perform more than one computer
task at a time.
• Multitasking creates the illusion of multiple tasks executing in parallel. Multitasking
involves the switching of CPU from executing one task to another.
• Multitasking is a logical extension of multiprogramming system that supports multiple
programs to run concurrently
• In multitasking more than one task are executed at the same time. In this technique the
multiple tasks, also known as processes, share common processing resources such as a CPU
• This also leads to efficient utilization of the CPU time and is essential for many embedded
applications where processors are limited in computing speed due to cost, power, silicon
area and other constraints.
CONTEXT SWITCHING
• When CPU switches to another process, the system must save the state of the old process
and load the saved state for the new process via a context switch.
• Context-switch time is overhead; the system does no useful work while switching.
• The more complex the OS and the PCB -> longer the context switch
• Some hardware provides multiple sets of registers per CPU -> multiple contexts loaded at
once
STEPS INVOLVED
MULTITASKING VS MULTIPROCESSING
• Co-operative Multitasking:
• Each program can control the CPU for as long as it needs.
• Pre-emptive Multitasking:
• The operating system parcels out CPU time slices to each program.