ECE329Notes(5)

ECE329Notes(5) - ECE 329 Operating Systems Chapter 5 1 of 6...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 329 Operating Systems Chapter 5 1 of 6 Threads Threads (also called lightweight process , LWP) are the basic unit of CPU operation. A heavyweight process is one which consists of only one thread. Each thread has associated with it Thread ID Program Counter Register Set Stack All threads of a single process share the same Code Section Data Section Operating System Resources Kernel Threads are created, scheduled, and maintained by the operating system. User Threads are maintained “above” the kernel through a thread library. Kernel threads are generally more costly to maintain.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 329 Operating Systems Chapter 5 2 of 6 The Benefits of Multiple Threads are that they allow for: Responsiveness – They permit interaction with the user while other thread(s) is/are running or even blocked. Sharing – Since threads share memory, related threads can share/communicate data. Efficiency – Since threads share resources, maintaining and switching multiple threads costs less than that of multiple processes. Speed
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

ECE329Notes(5) - ECE 329 Operating Systems Chapter 5 1 of 6...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online