Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 27th, 2008, 5:21 AM   #1
Michael_24
Newbie
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0 Michael_24 is on a distinguished road
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?
Michael_24 is offline   Reply With Quote
Old Mar 27th, 2008, 6:07 AM   #2
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 445
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
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
Freaky Chris is online now   Reply With Quote
Old Mar 31st, 2008, 2:13 AM   #3
victor louis
Newbie
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0 victor louis is on a distinguished road
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.

Last edited by Narue; Apr 22nd, 2008 at 7:59 AM. Reason: Snipped ad.
victor louis is offline   Reply With Quote
Old Mar 31st, 2008, 4:40 AM   #4
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 308
Rep Power: 2 Jabo is on a distinguished road
Re: Need source code analysis tool-race condition in multi threaded application

I smell spam...
Jabo is offline   Reply With Quote
Old Apr 22nd, 2008, 12:08 PM   #5
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
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.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorporating javascript code into java application csrocker101 Java 1 Feb 11th, 2008 7:36 AM
GCC sprintf Source Code JawaKing00 C 2 Nov 30th, 2006 4:53 AM
Image processing:Stentiford and Holt Thinning Source code in C or C++ ladyscarlet99 C 0 Sep 9th, 2005 2:20 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:53 AM.

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