Save
Operating Systems
Threads
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Isabelle Bill
Visit profile
Cards (13)
Thread
A
lightweight
process created within a normal (
heavyweight
) process
View source
Multithreading
The ability of an operating system to support
multiple threads
of
execution
within a
single process
View source
Threads
Processes have
at least one thread
of control
Multiple threads run in the same
address space
, share the same
memory areas
The creation of a thread only creates a new
thread control structure
, not a separate process image
View source
It depends on the actual
kernel implementation
how threads are managed
View source
Thread Control Block
A saved thread context when not running, containing:
thread identifier
,
stack pointer
,
program counter
,
state
,
register values
,
pointer
to
process control block
View source
Thread states
Running
,
Ready
,
Blocked
View source
There are four basic operations for managing threads:
Spawn/create
,
Block
,
Unblock
,
Finish
View source
User-level threads
Operating system
unaware
of threads, completely
controlled
by user program
View source
User-level
threads
Thread library functions
manage threads
Light thread switching
in
user mode
No
mode switch
necessary
Can implement own
thread scheduling
View source
Kernel-level
threads
Operating system manages threads, better
mapping
to
multiple
CPU cores
View source
Kernel-level threads
Kernel manages each thread
separately
Fine-grained
scheduling
by
kernel
If one thread
blocks
, another can be
scheduled without blocking
the whole
process
Threads can be
distributed
to
multiple processors
and run in
parallel
View source
Kernel-level
threads have significant
overhead
and increase in
kernel complexity
View source
A
mode
switch to
kernel mode
is required to
transfer control
from one kernel-level thread to another in a process
View source
See similar decks
Threads
cs241 > Operating Systems
36 cards
Threads
Operating Systems
146 cards
THREADS
OPERATING SYSTEMS
28 cards
1.5.1 Operating Systems
OCR GCSE Computer Science > 1.5 Systems Software
28 cards
6.3 Operating systems
AQA A-Level Computer Science > 6.0 Fundamentals of computer systems
110 cards
occur
OPERATING SYSTEMS > THREADS
4 cards
1.4.1 Threats to Computer Systems and Networks
OCR GCSE Computer Science > 1.4 Network Security
33 cards
Understanding the purpose and functionality of operating systems
OCR GCSE Computer Science > 1.5 Systems Software > 1.5.1 Operating Systems
28 cards
Business operations
AQA GCSE Business Studies
252 cards
4. Operations
OCR GCSE Business Studies
356 cards
4. Operations
OCR GCSE Business
355 cards
9.4.1 Threats
AQA A-Level Computer Science > 9.0 Fundamentals of communication and networking > 9.4 Network security
77 cards
1.5 Systems Software
OCR GCSE Computer Science
59 cards
5.1 Number systems
AQA A-Level Computer Science > 5.0 Fundamentals of data representation
292 cards
2.2.1 Global Systems
OCR A-Level Geography > 2. Human Interactions > 2.2 Global Connections
45 cards
3.1 Triads
AP Music Theory > Unit 3: Music Fundamentals III: Triads and Seventh Chords
55 cards
3. Business operations
GCSE Business Studies
151 cards
3. Business operations
AQA GCSE Business
150 cards
5. Operations Management
OCR A-Level Business
963 cards
2.3.1 Business operations
Edexcel GCSE Business Studies > 2.3 Making Operational Decisions
193 cards
3.2.1 Circulatory systems
OCR A-Level Biology > Module 3: Exchange and transport > 3.2 Transport in animals
76 cards