[go: up one dir, main page]

0% found this document useful (0 votes)
104 views8 pages

Thread (Computing)

The document discusses threads in computing. It defines a thread as the smallest sequence of instructions that can be independently scheduled by an operating system. Multiple threads can exist within a single process, executing concurrently and sharing resources like memory. Different processes do not share resources. The document then discusses thread-level parallelism and how multi-threading allows multiple tasks to execute simultaneously on multi-core or multi-CPU systems.

Uploaded by

Delphi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views8 pages

Thread (Computing)

The document discusses threads in computing. It defines a thread as the smallest sequence of instructions that can be independently scheduled by an operating system. Multiple threads can exist within a single process, executing concurrently and sharing resources like memory. Different processes do not share resources. The document then discusses thread-level parallelism and how multi-threading allows multiple tasks to execute simultaneously on multi-core or multi-CPU systems.

Uploaded by

Delphi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

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

You might also like