|
||||||
| Software Development Tools Tools to help encrypt, install or anything else for Software Development |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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? |
| Sponsored Links |
|
|
|
|||
|
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 |
![]() |
| Tags |
| bugs fixing, debugging, multi threaded, race condition, source code analysis |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VB 6.0: Tutorial, How to make a GIF in your application | TcM | VB Tutorials | 17 | 07-01-2008 03:26 PM |
| Making it Standalone from Source Code (Python) | annannienann | Python | 8 | 10-02-2007 11:45 PM |
| Please Help With A C Program!! | siren | C and C++ | 7 | 04-17-2007 08:45 AM |
| Valve: Half-Life 2 Source Code | falco85 | General Programming | 3 | 10-28-2006 05:03 PM |
| John | ........ | 167.00000 |
| Xav | ........ | 164.00000 |
| dargueta | ........ | 148.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |