Slides0401 - COP 3330 Slides 4/1 Topics Threads Sequential...

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

View Full Document Right Arrow Icon
Slides 4/1 COP 3330
Background image of page 1

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

View Full DocumentRight Arrow Icon
Topics Threads
Background image of page 2
Sequential Execution Many programs (probably most of the ones you've written) have sequential execution The steps of the program occur in the order in which they were written Only one thing happens at a time This is not the only way things can be done!
Background image of page 3

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

View Full DocumentRight Arrow Icon
Processes A process is a program that is executing For a long time, computers have been able to run multiple processes concurrently (at the same time)
Background image of page 4
Processes On many computers, processes don't actually run at the same time, but the OS switches between processes so fast that a human can't tell the difference With the advent of multi-core and hyperthreaded CPUs, some computers can actually have multiple processes running simultaneously
Background image of page 5

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

View Full DocumentRight Arrow Icon
Threads It is possible for a single process to have multiple sub-tasks that run concurrently These are known as threads Threads are sometimes called lightweight processes
Background image of page 6
Threads Why use threads? -
Background image of page 7

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

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

This note was uploaded on 02/09/2010 for the course CS COP 3330 taught by Professor Douglass during the Spring '09 term at University of Central Florida.

Page1 / 13

Slides0401 - COP 3330 Slides 4/1 Topics Threads Sequential...

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

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