Click here to Skip to main content
15,916,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problems in dynamic Memory allocation Pin
Amit Mulay9-Jun-05 1:58
Amit Mulay9-Jun-05 1:58 
GeneralRe: problems in dynamic Memory allocation Pin
James R. Twine9-Jun-05 4:38
James R. Twine9-Jun-05 4:38 
GeneralRe: problems in dynamic Memory allocation Pin
Amit Mulay9-Jun-05 2:12
Amit Mulay9-Jun-05 2:12 
GeneralRe: problems in dynamic Memory allocation Pin
James R. Twine9-Jun-05 4:25
James R. Twine9-Jun-05 4:25 
GeneralRe: problems in dynamic Memory allocation Pin
Tim Smith9-Jun-05 3:50
Tim Smith9-Jun-05 3:50 
GeneralRe: problems in dynamic Memory allocation Pin
James R. Twine9-Jun-05 4:26
James R. Twine9-Jun-05 4:26 
GeneralRe: problems in dynamic Memory allocation Pin
Alexander M.,9-Jun-05 5:46
Alexander M.,9-Jun-05 5:46 
GeneralRe: problems in dynamic Memory allocation Pin
James R. Twine9-Jun-05 5:56
James R. Twine9-Jun-05 5:56 
Alexander M. wrote:
Normally allocating memory is not affected by threads, since the whole thing is synchronized with a semaphore (critical section).

      [Pedantic Hat On]
   Technically, it is affected, and it is because of the Critical Section used to synchronize access to the heap in the default runtime memory allocator.  If multiple threads are abusing the heap, they will lock each other out from time-to-time, which will hinder performance.
      [Pedantic Hat Off]

   That is actually one of the reasons developers sometimes see a dramatic decrease in performance when they start using multiple threads - bad memory practices.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
Generalstd::map problem Pin
Bob Stanneveld8-Jun-05 23:34
Bob Stanneveld8-Jun-05 23:34 
GeneralDoh! Pin
Bob Stanneveld9-Jun-05 0:20
Bob Stanneveld9-Jun-05 0:20 
GeneralRe: std::map problem Pin
Nilesh K.9-Jun-05 0:21
Nilesh K.9-Jun-05 0:21 
GeneralRe: std::map problem Pin
Bob Stanneveld9-Jun-05 0:26
Bob Stanneveld9-Jun-05 0:26 
GeneralRe: std::map problem Pin
grasstafari9-Jun-05 0:25
grasstafari9-Jun-05 0:25 
GeneralPOST string to .asp Pin
dex_ter118-Jun-05 23:24
dex_ter118-Jun-05 23:24 
GeneralRe: POST string to .asp Pin
Bob Stanneveld8-Jun-05 23:54
Bob Stanneveld8-Jun-05 23:54 
GeneralRe: POST string to .asp Pin
ThatsAlok9-Jun-05 1:05
ThatsAlok9-Jun-05 1:05 
GeneralRe: POST string to .asp Pin
dex_ter119-Jun-05 15:16
dex_ter119-Jun-05 15:16 
GeneralRe: POST string to .asp Pin
ThatsAlok9-Jun-05 18:21
ThatsAlok9-Jun-05 18:21 
GeneralLNK2001 Error Using Edit Control Variable in static function Pin
CNewbie8-Jun-05 23:03
CNewbie8-Jun-05 23:03 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
GDavy8-Jun-05 23:19
GDavy8-Jun-05 23:19 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 0:03
Bob Stanneveld9-Jun-05 0:03 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 0:45
CNewbie9-Jun-05 0:45 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:12
Bob Stanneveld9-Jun-05 1:12 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 1:19
CNewbie9-Jun-05 1:19 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:29
Bob Stanneveld9-Jun-05 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.