in reply to Re^7: memory leaks with threads
in thread memory leaks with threads
Is there a possibility that this is somehow related to my dual core processor ?My gut says no, but I don't have a dual core to with which to verify my gut one way or another.
I've seen that if one has a single core, then one can avoid many race conditions because only one thread ever runs at a time. I've seen several cases of code that works great "forever" on a single-core system but gets confused when run on a multi-processor or multi-core system. Losing track of resources and thus leaking memory is certainly a possible outcome of such race conditions.
It isn't terribly hard to test such either, just bind the process to a single processor / core and see if the memory leak goes away.
The leak being that dramatic vs. not at all is a rather stark difference to explain with a race condition, however, so a configuration difference seems more likely.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: memory leaks with threads (race of 1)
by BrowserUk (Patriarch) on Jul 09, 2007 at 21:41 UTC | |
by misc (Friar) on Jul 10, 2007 at 12:21 UTC |