• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Understanding liveness & synchronization issues for newbies

 
Greenhorn
Posts: 21
2
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

For those learning about concurrency =

I came across a famous example for learning about synchronization and liveness issues called "The Dining Philosophers Problem". Wanted to share it with fellow students who have no experience with it.

https://en.wikipedia.org/wiki/Dining_philosophers_problem
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And it would be an awesome coding exercise if you try to implement this problem in Java!

From my own experience, you definitely need hands on experience to improve your understanding of threads and synchronization. When I took the SCJP 1.4 certification (a very long time ago) I just read the chapters on threading & synchronization but didn't write any additional code snippets. I scored 50% on the threads section of the actual exam. When I prepared for SCJP 5.0, I dedicated most of my coding time on threads and concurrency and I scored 87% on the threads section.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic