Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQuestion Regarding ScrollView Pin
godspeed12319-Aug-08 5:50
godspeed12319-Aug-08 5:50 
AnswerRe: Question Regarding ScrollView Pin
led mike19-Aug-08 6:00
led mike19-Aug-08 6:00 
GeneralRe: Question Regarding ScrollView Pin
godspeed12319-Aug-08 6:06
godspeed12319-Aug-08 6:06 
GeneralRe: Question Regarding ScrollView Pin
led mike19-Aug-08 6:44
led mike19-Aug-08 6:44 
QuestionImpact of synchronization on application performances Pin
Ahmed Charfeddine19-Aug-08 5:30
Ahmed Charfeddine19-Aug-08 5:30 
AnswerRe: Impact of synchronization on application performances Pin
Roger Stoltz19-Aug-08 5:51
Roger Stoltz19-Aug-08 5:51 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine19-Aug-08 6:16
Ahmed Charfeddine19-Aug-08 6:16 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine19-Aug-08 22:12
Ahmed Charfeddine19-Aug-08 22:12 
M.Roger,
I didn't understand the two lines of your reply. Eventhough if you meant what would be the consequence if a certain "name reader" gets a corrupted value, then my answer is that there will be no fatal problems.

The application consists of a fixed number of threads that services the concurrent clients requests. all thread are executing the same prototype code.
I have seen many sample implementation of the design I am using(even by Micrsoft), but they do all care so much more about data correctness than
about parallelisation : ie for example looking at many simple chat multithreaded programs, they have a sort of a global CriticalSection that they call for nearly evry operation. Examining them I easily conculded that didn't take the very sepecificities of their code in order to only limit serialization upon the only necessary code blocks, or data blocks.
In my case, I want give much importance to parallelisation, ie speed of execution of the requests, abnd only cause serialization upon the very necessary details.

And even for those details, I try to isolate the non fatal ones, ie for example the data members of which incorrectnesses wouldn't lead to fatal consequences.

My above example is a simple case.But the problem I faced is that concurrent access to ATL/MFC CString for example causes the application to crash !
Even the concurrent execution of such two functions like the followings does cause the program to crash :


void setName(CString myName)
{
this->myName=myName;
}

bool getIsNameEqual(CString myName)
{
return this->myName==myName;
}


!

Our Philosophy, Mohammed Baqir Al Sadr

AnswerRe: Impact of synchronization on application performances Pin
Roger Stoltz19-Aug-08 22:46
Roger Stoltz19-Aug-08 22:46 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine19-Aug-08 22:53
Ahmed Charfeddine19-Aug-08 22:53 
AnswerRe: Impact of synchronization on application performances Pin
Roger Stoltz19-Aug-08 23:39
Roger Stoltz19-Aug-08 23:39 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine20-Aug-08 0:16
Ahmed Charfeddine20-Aug-08 0:16 
GeneralRe: Impact of synchronization on application performances Pin
Roger Stoltz20-Aug-08 4:33
Roger Stoltz20-Aug-08 4:33 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine20-Aug-08 5:54
Ahmed Charfeddine20-Aug-08 5:54 
AnswerRe: Impact of synchronization on application performances Pin
Jijo.Raj19-Aug-08 6:40
Jijo.Raj19-Aug-08 6:40 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine19-Aug-08 6:53
Ahmed Charfeddine19-Aug-08 6:53 
GeneralRe: Impact of synchronization on application performances Pin
Jijo.Raj19-Aug-08 7:19
Jijo.Raj19-Aug-08 7:19 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine19-Aug-08 21:50
Ahmed Charfeddine19-Aug-08 21:50 
GeneralRe: Impact of synchronization on application performances Pin
Cedric Moonen19-Aug-08 7:22
Cedric Moonen19-Aug-08 7:22 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine20-Aug-08 0:39
Ahmed Charfeddine20-Aug-08 0:39 
GeneralRe: Impact of synchronization on application performances Pin
Cedric Moonen20-Aug-08 1:08
Cedric Moonen20-Aug-08 1:08 
GeneralRe: Impact of synchronization on application performances Pin
Ahmed Charfeddine20-Aug-08 1:37
Ahmed Charfeddine20-Aug-08 1:37 
GeneralRe: Impact of synchronization on application performances Pin
Cedric Moonen20-Aug-08 2:11
Cedric Moonen20-Aug-08 2:11 
GeneralRe: Impact of synchronization on application performances Pin
Cedric Moonen31-Aug-08 22:35
Cedric Moonen31-Aug-08 22:35 
QuestionHow to get the full path of a file (Win32 api) Pin
ice87111719-Aug-08 4:43
ice87111719-Aug-08 4:43 

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.