Presentation is loading. Please wait.

Presentation is loading. Please wait.

Manage Your Tasks in Operating System

Similar presentations


Presentation on theme: "Manage Your Tasks in Operating System"— Presentation transcript:

1 Manage Your Tasks in Operating System
Cheng-Han Du

2 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.

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

4

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

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

7 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.

8 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.

9

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

11 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.

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

13 Process Control Resource access and overwriting Deadlock Semaphore ……

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

15

16

17

18

19

20

21

22

23 What Will You See in a Heavily Loaded System?

24

25

26 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.


Download ppt "Manage Your Tasks in Operating System"

Similar presentations


Ads by Google