Manage Your Tasks in Operating System

Slides:



Advertisements
Similar presentations
Slide 19-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 19.
Advertisements

HW/Study Guide. Synchronization Make sure you understand the HW problems!
Operating Systems Review.
4/14/2017 Discussed Earlier segmentation - the process address space is divided into logical pieces called segments. The following are the example of types.
Chapter 5 Processes and Threads Copyright © 2008.
1 Threads, SMP, and Microkernels Chapter 4. 2 Process: Some Info. Motivation for threads! Two fundamental aspects of a “process”: Resource ownership Scheduling.
CS 333 Introduction to Operating Systems Class 11 – Virtual Memory (1)
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Paging Design.
WMBA 6080Technology Guide 2 1 CISM 3330 Technology Guide 2 – Computer Software.
1. Memory Manager 2 Memory Management In an environment that supports dynamic memory allocation, the memory manager must keep a record of the usage of.
Seoul National University
Memory/Storage Architecture Lab 1 Virtualization History of Computing = History of Virtualization  e.g., process abstraction, virtual memory, cache memory,
Computing and the Web Operating Systems. Overview n What is an Operating System n Booting the Computer n User Interfaces n Files and File Management n.
Computer Architecture Memory Management Units Iolanthe II - Reefed down, heading for Great Barrier Island.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Operating Systems COMP 4850/CISG 5550 Page Tables TLBs Inverted Page Tables Dr. James Money.
System Software Provides GUI Manages the resources of the computer system Defines the Software Platform Components of System Software Operating system.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
CS399 New Beginnings Jonathan Walpole. Virtual Memory (1)
Chapter 4: Multithreaded Programming. 4.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts What is Thread “Thread is a part of a program.
4.3 Virtual Memory. Virtual memory  Want to run programs (code+stack+data) larger than available memory.  Overlays programmer divides program into pieces.
Operating Systems CSE 411 Revision and final thoughts Revision and final thoughts Dec Lecture 33 Instructor: Bhuvan Urgaonkar.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 OS 1.
Operating Systems. Categories of Software System Software –Operating Systems (OS) –Language Translators –Utility Programs Application Software.
Unit 4: Processes, Threads & Deadlocks June 2012 Kaplan University 1.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Software.
Memory: Page Table Structure
Translation Lookaside Buffer
Operating System & Application Software
Chapter 7 Operating Systems.
Computer Organization
Non Contiguous Memory Allocation
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Process Management Process Concept Why only the global variables?
CS 6560: Operating Systems Design
Lecture Topics: 11/19 Paging Page tables Memory protection, validation
Section 9: Virtual Memory (VM)
Page Table Implementation
Chapter 4 – Introduction to Operating System Concepts
Chapter 4 Threads.
Memory Hierarchy Virtual Memory, Address Translation
CS510 Operating System Foundations
Threads and Locks.
Seoul National University
Chapter 8: Main Memory.
OS Virtualization.
Threads and Data Sharing
FIGURE 12-1 Memory Hierarchy
Chapter 4: Threads.
Intro. To Operating Systems
Operating Systems.
Lecture 29: Virtual Memory-Address Translation
Chapter 8: Memory management
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Sarah Diesburg Operating Systems CS 3430
Virtual Memory Hardware
Translation Lookaside Buffer
Morgan Kaufmann Publishers Memory Hierarchy: Virtual Memory
Threads Chapter 4.
TLB Performance Seung Ki Lee.
The Operating system Gives life to the hardware
Computer System Design Lecture 11
- When you approach operating system concepts there might be several confusing terms that may look similar but in fact refer to different concepts:  multiprogramming, multiprocessing, multitasking,
Lecture 3: Main Memory.
4.3 Virtual Memory.
CSE 542: Operating Systems
Chapter 3: Process Management
Virtual Memory 1 1.
Presentation transcript:

Manage Your Tasks in Operating System Cheng-Han Du

What We’re Gonna Talking About Multitasking has been a general technology in modern operating system. To take a closer look, we have to know some basic operations. After that, we will be more clear about their processing scheme and hence do some modifications.

Before We Start… Please take a look at the slides of OS C. (functions).

Process “An executing instance of a program is called a process” In some popular operating system, every process has a unique process ID (PID).

MMU Memory Management Unit MMU is a computer hardware component responsible for handling accesses to memory requested by CPU. Virtual memory Paging

TLB Translation Lookaside Buffer TLB is used to improve translation performance of virtual memory. TLB is placed in CPU cache. Hence, MMU can access it in very high speed.

Page Table Page table holds mapping data of virtual memory and physical memory. Page table is handled in virtual memory. Thus, paging is usually very slow.

Multitasking Using multiple processes or threads to execute your program. Process: Memory duplication Thread: Lightweight Detailed issue Resource sharing Race condition

Multitasking If you have multiple CPUs or a multi-core CPU… Several tasks can be processed simutaneously. You may execute a multithread-supported program for higher computation performance. However, they are still under control of process scheduler.

Process Control Number of processes can be very large. Process control is required to handle each of them properly. In Unix: Swapper Pagedaemon

Process Control Resource access and overwriting Deadlock Semaphore ……

Manage Your Tasks In Windows XP and Vista: In Linux: “taskmgr” “top” “htop” Some GUI-based system monitor

What Will You See in a Heavily Loaded System?

How to End a Process Manually? In Windows: Simply select a process and terminate it in task manager. In Unix: The same or do it in command line. Some process is essential to general system operation. Do not terminate them if you are not quite sure.