THREAD (COMPUTING)
DELPHI HANGGORO
INTRODUCTION
• In computer science, a thread of execution is the smallest sequence of
programmed instructions that can be managed independently by a scheduler,
which is typically a part of the operating system. The implementation of
threads and processes differs between operating systems, but in most cases a
thread is a component of a process. Multiple threads can exist within one
process, executing concurrently and sharing resources such as memory, while
different processes do not share these resources. In particular, the threads of a
process share its executable code and the values of its variables at any given
time.
Instruksi dari sebuah Program
binary hex
Get #3 | 0100 1011 | 4A
Get #2 | 0101 1000 | 5B
Add together | … | 6C
Show result on memory | … | 7D
RAM
CPU (System Memory)
queue
7D BUS 4A
Execution 6C 5B
Engine 5B 6C
Clock
(Contoh 4A 7D
2Ghz)
Pipeline
ALU
Multi Tasking
CPU
Scheduler Priority
S/W MS. Word
9 7 5
4A, 5B, 6C, 7D …
Priority
9 MS. Power Point
14A, 15B, 16C, 17D …
Unit of execution
(Collection of instruction
Time Slice (satu mili detik) that form some specific task)
MS.Power Point Proses Terjadi secara serentak
Thread
1. Keyboard input
2. Print
3. Save file
PRESENTASI KEDEPAN
• Sejarah Thread
• Thread Level Parallelism
QUICK REVIEW HYPERTHREADING
Multi Tasking OS
CPU’s
Multi Thread Application
CPU Multi Core Multi CPU
Execution Execut Execut
Engine ion ion
Engine Engine
ALU ALU
ALU Pipeline
REFERENCE
TERIMAKASIH