Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Concurrent Programming in Java      from: NFJS Magazine 2011 March   demo by: Keesun Baik(http//whiteship.me)      email: ...
Java Concurrency• There are “Shared Mutable Variables” • So, “Synchronization” is required.• Monitor-based Concurrency Mod...
Software Transaction      Memory• Remove “Synchronization” by • Change the “Shared Mutable Object” to    “managed referenc...
Actor• Remove “Shared Mutable Object” by • Encapsulate variables within “Actor” • “Actors” are run only by one thread at  ...
Sample• Sequentially call open API.• Monitor-based call open API.• STM-based call open API.• Actor-based call open API.
What do you think        about?• Which way of concurrent programming do  you prefer or looks attractive to you?• Which log...
Upcoming SlideShare
Loading in …5
×

Concurrency programming

  • Login to see the comments

  • Be the first to like this

Concurrency programming

  1. 1. Concurrent Programming in Java from: NFJS Magazine 2011 March demo by: Keesun Baik(http//whiteship.me) email: whiteship2000@gmail.compresent at: G+ Hang Out, 06.12.2011, 10 PM, Seoul
  2. 2. Java Concurrency• There are “Shared Mutable Variables” • So, “Synchronization” is required.• Monitor-based Concurrency Model • http://en.wikipedia.org/wiki/Java_concurrency
  3. 3. Software Transaction Memory• Remove “Synchronization” by • Change the “Shared Mutable Object” to “managed reference”. • A managed reference is not allowed to change in an uncontrolled manner.
  4. 4. Actor• Remove “Shared Mutable Object” by • Encapsulate variables within “Actor” • “Actors” are run only by one thread at any time. • So, there is no “contention”.
  5. 5. Sample• Sequentially call open API.• Monitor-based call open API.• STM-based call open API.• Actor-based call open API.
  6. 6. What do you think about?• Which way of concurrent programming do you prefer or looks attractive to you?• Which logic do you process concurrently?• What subjects should we learn about?• Which books do you use to learn concurrent programming?

×