• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
Replace the word "snake" with "danger noodle" in all tiny ads.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic