<< Alex Miller, Mendelbrot, Concurrency, Tonight At 6:30, At The JUG | Home | It's A Typo (Was: James Gosling: Silverlight Kicks Ass) >>

Friday Java Quiz: Source Reconstruction

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
SEDA                           writeLock
Tags :


Re: Friday Java Quiz: Source Reconstruction

Yeah, right.

Re: Friday Java Quiz: Source Reconstruction

I'll pass on the reconstruction, but fill in another missing piece. Where you wrote SETA, Alex meant SEDA: http://www.eecs.harvard.edu/~mdw/proj/seda/

Re: Friday Java Quiz: Source Reconstruction

Ooh, I can do this one! Yes, SEDA is what I mentioned at the talk. I like this - it's kind of a post-modern summary of the talk.

Add a comment Send a TrackBack