The Artima Developer Community
Sponsored Link

Java Buzz Forum
Friday Java Quiz: Source Reconstruction

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Friday Java Quiz: Source Reconstruction Posted: Oct 12, 2007 6:45 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Friday Java Quiz: Source Reconstruction
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

The following is a fragment of source code that I jotted down during Alex Miller's presentation at the JUG yesterday:

    lock.writeLock().lock()
    try {
      data[index] = result;
      pixelComplete++;
    } finally {
      lock.writeLock().unlock();
    }

Today's quiz: reconstruct the original program of which this fragment is a part.

Bonus round: here are some other words in my notes, make sense of them:

             jsr166y
          encapsulate shared state

  handout
  no slides                            ReentrantLock
  all code

            AtomicInteger         wait, notify          ForkJoin
               Lock                   Condition
                                    newCondition()
                 tryLock()           ReadWriteLock

SETA               Future              readLock
                                       writeLock

Read: Friday Java Quiz: Source Reconstruction

Topic: Canon EF 50mm f/1.8 II Previous Topic   Next Topic Topic: SAP TechEd ‘07 - CommunityDay, Who’s Hungry, Who’s Burping from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use