DOC PREVIEW
TRINITY CSCI 1321 - Concurreny Library

This preview shows page 1-2-3-4 out of 11 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Concurreny Library9-14-2011Opening DiscussionMinute essay commentsCores and stressing machines.IcP solutionsMotivationThe future is parallel.Core counts are growing but clock speed isn't and neither is single thread performance.Software developers are behind the curve on this.wait/notifyAllAllows synchronization between threads. A thread can wait and it won't restart until another thread notifies it.Put wait in while loop that checks a Boolean flag.Always use notifyAll instead of notify. Failure to do so leads to deadlocks.These must be called from inside of a synchronized block.java.util.concurrentJava 5 added the java.util.concurrent package and others below it.Provides better ways to do common tasks for parallel.ExecutorsUse the proper one of these to start threads instead of making them manually.Allows Callable[A] and Future[A] which return a value.Parallel Data StructuresBlockingQueueConcurrentMapCountDownLatchCyclicBarrierExchangerPriorityBlockingQueueSemaphoreScala provides some support for basic collections.LocksMore flexible than synchronized.Provides extra power when needed. Particularly for locking across method calls.AtomicsData values with atomic access.Faster and easier than doing your own synchronization.CodeI want to get commands working so that we can play with some of this in the drawing program.Minute EssayHow might you break parts of your project code into different threads to take advantage of many


View Full Document

TRINITY CSCI 1321 - Concurreny Library

Documents in this Course
Recursion

Recursion

11 pages

Iterators

Iterators

10 pages

Actors

Actors

9 pages

Recursion

Recursion

15 pages

Recursion

Recursion

10 pages

Threads

Threads

7 pages

Trees

Trees

11 pages

Load more
Download Concurreny Library
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Concurreny Library and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Concurreny Library 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?