[ARTICLE] Java Threads: A Faulty Concurrency Model


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: [ARTICLE] Java Threads: A Faulty Concurrency Model

Hybrid View

  1. #1
    CodeMage Guest

    [ARTICLE] Java Threads: A Faulty Concurrency Model


    We have recently added a couple of interesting technical articles written
    by Jim Rogers to the CodeMages Community web site, the first one of them
    being "Java Threads: A Faulty Concurrency Model". Here's a synopsis of this
    article:

    -----------------
    Java provides an unusually high level of support for creating threaded applications.
    Unfortunately, the mechanisms for safely communicating between threads easily
    lead to dangerous race conditions and deadlocks. While solutions to these
    problems do exist, they are messy at best, tending to cause violations of
    good object oriented design principles.
    -----------------

    For those who want to read more, visit the Coding | Java section of the CodeMages
    Community web site and find the article at http://www.crystalcode.com/codemage/...avaThreads.php

    Jim has rapidly become a major contributor to our community and his generous
    contributions so far, include:

    ----
    Title: Concurrent Programming
    Location: Coding | Programming Concepts, http://www.crystalcode.com/codemage/...rogramming.php

    Synopsis:
    -----------------
    More and more software systems are being designed with concurrent programming
    features. Early concurrent systems were constructed from groups of cooperating
    processes. Modern concurrent systems are being constructed in one process
    with groups of cooperating threads. Concurrent processing promises dramatic
    performance improvements. It also presents the developer with a new set of
    design problems.
    -----------------



    ----
    Title: Shared Resource Design Patterns
    Location: Coding | Programming Concepts, http://www.crystalcode.com/codemage/...esignPatte.php

    Synopsis:
    -----------------
    Concurrent programming requires control of access to shared resources. Experience
    shows there are many common design patterns for shared resources. This paper
    explores some of the common patterns for locking and buffering data, as expressed
    using monitors.
    -----------------



    We would love to get some feedback on these articles in the form of an e-mail
    to codemage@crystalcode.com (which will be forwarded to Jim Rogers) or in
    the form of a discussion with Jim Rogers (aka WanderingInstructor) on the
    CodeMages Community Forum.

    Also, our brand new developers community needs more serious contributors
    like Jim who can write high quality technical articles about software development
    or web design techniques. For more information and other contribution possibilities
    please write to codemage@crystalcode.com or visit the CodeMages Community
    web site at http://www.crystalcode.com/codemage

    Thanks for your time,

    ----
    CodeMage
    The CodeMages Community
    ------------
    E-mail: codemage@crystalcode.com
    Web site: http://www.crystalcode.com/codemage
    Forum: http://www.crystalcode.com/codemageforum
    (register for free at http://www.crystalcode.com/codemagef...php?action=reg
    to join in the discussions)


  2. #2
    Brad O'Hearne Guest

    Re: [ARTICLE] Java Threads: A Faulty Concurrency Model

    Hey gang,

    I haven't been able to spend a huge amount of time dissecting this article,
    but what I did read was very informative. I am going to spend some more
    time with it later. However, there are some points in it I take issue with,
    and subsequently disagree with the assertion that Java provides a "faulty"
    concurrency model. I will be able to go into more detail possibly later,
    but nearly any feature of any programming language is not completely
    insulated from user error -- as with any system, *smart design* is the key.

    But the article is an interesting read.

    Cheers,

    BradO

    --
    Brad O'Hearne
    DevX Section Leader



    "CodeMage" <codemage@crystalcode.com> wrote in message
    news:3d8844d5$1@10.1.10.29...
    > -----------------
    > Java provides an unusually high level of support for creating threaded

    applications.
    > Unfortunately, the mechanisms for safely communicating between threads

    easily
    > lead to dangerous race conditions and deadlocks. While solutions to these
    > problems do exist, they are messy at best, tending to cause violations of
    > good object oriented design principles.
    > -----------------




  3. #3
    MarkN Guest

    Re: [ARTICLE] Java Threads: A Faulty Concurrency Model


    >as with any system, *smart design* is the key.

    Ahh. The crux of the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center