Closed Thread
Results 1 to 2 of 2

Thread: Need source code analysis tool-race condition in multithreaded application

  1. #1
    victor louis is offline Newbie
    Join Date
    Mar 2008
    Posts
    1
    Rep Power
    0

    Need source code analysis tool-race condition in multithreaded application

    Hi ,
    I developed a multi threaded application for web office automation using Java.
    I got a bug in transferring multiple files and it seems to be a race condition. . Can anyone help me to solve this bug?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    steve martin is offline Newbie
    Join Date
    Mar 2008
    Posts
    1
    Rep Power
    0

    Coverity Prevent- static source code analysis tool for debugging

    Hi
    In you situation ,a race condition has occurred due to a lack of synchronization or the improper use of synchronization when accessing shared resources such as variables. Data races occur when the developer fails to specify which thread has access to a variable at a given time. In such a case, whichever thread wins the race gets access to the data, with unpredictable results.
    Because threads can be preempted at any time, you can't safely assume that a thread executing at start-up will have accessed the data it needs before other threads begin to run. As well, the order in which threads are executed may differ from one VM to the next, making it impossible to determine a standard succession of events.
    Sometimes, data races may be insignificant in the outcome of the program, but more often than not they can lead to unexpected results that are hard to debug. In short, data races are concurrency problems waiting to rear their ugly heads. A good static source code analysis tool like Coverity Prevent will identify any data race it encounters while executing your program , and flag it for you to fix. Coverity has customers like Symbian, RIM (Blackberry), Juniper networks, Cisco, Texas instruments and is also used by the Department of Homeland security to scan lots of open source projects. You can get more info at Static Analysis, Software Quality for C,C++ Java - Coverity Inc

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Backlinks analysis: new tool by Ahrefs.com
    By Ahrefs in forum Search Engine Optimization
    Replies: 2
    Last Post: 09-18-2011, 11:07 AM
  2. Programming Tool for Mobile Application
    By edge02 in forum General Programming
    Replies: 16
    Last Post: 08-23-2011, 02:36 AM
  3. Multithreaded enviroment
    By joninty in forum C and C++
    Replies: 3
    Last Post: 10-31-2010, 04:18 PM
  4. WPF Application - Bind with SQL data source
    By avibiter in forum C# Programming
    Replies: 0
    Last Post: 12-05-2009, 04:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts