Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Slide 2 of 18
Process Concept
Slide 3 of 18
a word processor,
a web browser, and
an e-mail package.
Even if the user can execute only one program at a time, the
operating system may need to support its own internal
programmed activities, such as memory management.
In many respects, all these activities are similar, so we call
all of them processes.
Computer Education & Instructional Technology
CEIT313 Use of Operating Systms
Slide 4 of 18
Process in Memory
Slide 5 of 18
Slide 6 of 18
Slide 7 of 18
Separate Processes
Process State
Slide 9 of 18
Slide 10 of 18
Threads
A thread is a basic unit of CPU utilization
It comprises a thread ID, a program counter, a
register set, and a stack.
It shares with other threads belonging to the
same process its code section, data section, and
other operating-system resources, such as open
files and signals.
A traditional (or heavyweight) process has a
single thread of control.
If a process has multiple threads of control, it
can perform more than one task at a time.
Slide 11 of 18
Slide 12 of 18
The Benefits
The benefits of multithreaded
programming can be broken down into
four major categories:
1.
2.
3.
4.
Slide 13 of 18
Responsiveness.
Resource sharing.
Economy.
Utilization of multiprocessor architectures
Slide 14 of 18
Responsiveness
Resource Sharing
Slide 15 of 18
Slide 16 of 18
Economy
Slide 17 of 18
Slide 18 of 18