Lecture-3 - CS390C: Principles of Concurrency and...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS390C: Principles of Concurrency and Parallelism Principles of Concurrency and Parallelism Lecture 3: Threads and Events 1/17/12 1 Tuesday, January 17, 12 CS390C: Principles of Concurrency and Parallelism Threads and Processes ● A process is a representation of a computation managed by an operating system − Virtual address space − process control block ● A thread is a representation of a computation managed by an application − thread control block ● Process and thread control blocks contain all the information necessary to execute the computation (e.g., stacks, register contents, program memory, etc.) ● Main difference: − all threads within a computation execute within the same address space 2 Tuesday, January 17, 12 ✘ CS390C: Principles of Concurrency and Parallelism Processes 3 Process P1 Process P2 Data D1 Data D2 Address space Address space Tuesday, January 17, 12 CS390C: Principles of Concurrency and Parallelism Threads 4 Thread T1 Thread T2 Data D1 Data D2 Address space Process ✓ Tuesday, January 17, 12 CS390C: Principles of Concurrency and Parallelism Threads and Processes ● Critical distinction: − References (i.e., locations) have meaning between threads − They are interpreted independently between processes ● Sharing state among processes requires special care − memory-mapped regions, devices, etc. 5 Tuesday, January 17, 12 CS390C: Principles of Concurrency and Parallelism Threads ● The state (resources) needed to execute a thread is managed directly by a process...
View Full Document

This note was uploaded on 03/26/2012 for the course CS 390 taught by Professor Staff during the Spring '08 term at Purdue University.

Page1 / 17

Lecture-3 - CS390C: Principles of Concurrency and...

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

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