My application creates two threads. One to acquire data and one to display it. I used a synchronization method from "Multithreaded Programming With Win32" sync objects are initialized like this.
...
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_10312967.htm...
Zones:
Windows MFCDate Answered: 03/22/2000 Grade: B Views: 0
Hello,
what is the right way and why ?
"
try
EnterCriticalSection(CriticalSec);
....
finally
LeaveCriticalSection(CriticalSec);
end;
"
OR
"
EnterCriticalSection(...
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20137249.html
Hi,
Let us consider the following code below
// This is a global variable
CRITICAL_SECTION g_CriticalSection;
// There will be only one instance of the entire
// appl...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20233391.html
Zones:
C++Date Answered: 04/02/2002 Grade: A Views: 38
I am working on an framework for a high performance enterprise scale application server. Thanks to the last collaboration, the performance problems surrounding memory management have been resolved...
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20334745.html
I am looking for the best (i.e. most efficient) method to synchronize threads for the following situation:
Suppose I have a function that accepts a pointer to a file. With this pointer, the fun...
http://www.experts-exchange.com/Programming/Languages/C/Q_21172767.html
Zones:
CDate Answered: 10/20/2004 Grade: A Views: 0
Hello,
I am programming a VB 6.0 application and I am trying to understand the threading options that are available.
Under the project properties I have a number of options:
(1) Apartment ...
http://www.experts-exchange.com/Programming/Misc/Q_21396446.html
I have a global CRITICAL_SECTION object, but when I try to use EnterCriticalSection() with it, I get an access violation.
CRITICAL_SECTION g_criticalSection;
...
//Then later on in a global ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20785500.html
Zones:
C++Date Answered: 11/02/2003 Grade: A Views: 16
I have an app that I am trying to add multithreading to. The threads are initialized, then i want them to go and call a function which writes to a database, then they should terminate. This is wh...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20430717.html
Zones:
C++Date Answered: 02/05/2003 Grade: A Views: 0
This is when and when not do i use it question...
Var
Global1: TStringList;
Global2: TList;
ECS2,ECS: TrtlCriticalSection;
//start my program
Procedure OnCreate...
Begin
Initi...
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_21013608.html
I'm having problems getting the Win32 CriticalSection calls to work. In the following code, the call to EnterCriticalSection seems to be ignored, and each call to SearchFunc gets the value 'z', rat...
http://www.experts-exchange.com/Programming/Languages/C/Q_22017538.html
Zones:
CDate Answered: 10/10/2006 Grade: A Views: 70