Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   Need source code analysis tool-race condition in multi threaded application (http://www.programmingforums.org/showthread.php?t=15492)

Michael_24 Mar 27th, 2008 4:21 AM

Need source code analysis tool-race condition in multi threaded 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?

Freaky Chris Mar 27th, 2008 5:07 AM

Re: Need source code analysis tool-race condition in multi threaded application
 
if its a problem with your code, then perhaps it would be a good idea to post the section of code that you beleive to be causing problems. That way we can look at it and find a solution for you

victor louis Mar 31st, 2008 1:13 AM

Coverity Prevent- source code analysis tool for debugging software defects
 
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.

Jabo Mar 31st, 2008 3:40 AM

Re: Need source code analysis tool-race condition in multi threaded application
 
I smell spam...

Narue Apr 22nd, 2008 11:08 AM

Re: Need source code analysis tool-race condition in multi threaded application
 
victor louis and Michael_24 are the same person. The questions are bogus and meant to open the door for solicitation of a product. This guy is a spammer, so please report any further posts by either of these accounts so that they can be dealt with accordingly.


All times are GMT -5. The time now is 5:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC