Click here to Skip to main content
15,868,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog and Keyboard events Pin
braveheartkenya27-Feb-06 6:09
braveheartkenya27-Feb-06 6:09 
Questionloading a file into strings Pin
FARGORE25-Feb-06 11:13
FARGORE25-Feb-06 11:13 
QuestionMultithreading and ReadFile() / WriteFile() Pin
Halloko25-Feb-06 8:56
Halloko25-Feb-06 8:56 
AnswerRe: Multithreading and ReadFile() / WriteFile() Pin
FARGORE25-Feb-06 11:53
FARGORE25-Feb-06 11:53 
GeneralRe: Multithreading and ReadFile() / WriteFile() Pin
Halloko25-Feb-06 12:03
Halloko25-Feb-06 12:03 
AnswerRe: Multithreading and ReadFile() / WriteFile() Pin
cmk25-Feb-06 13:54
cmk25-Feb-06 13:54 
GeneralRe: Multithreading and ReadFile() / WriteFile() Pin
Halloko25-Feb-06 22:33
Halloko25-Feb-06 22:33 
GeneralRe: Multithreading and ReadFile() / WriteFile() Pin
ThatsAlok26-Feb-06 22:56
ThatsAlok26-Feb-06 22:56 
Halloko wrote:
So either a critical section of some sort or two open handles.


Lets discuss the pros and cons of each method :-

#1: Using Syncronization Object to control reading and writing :-
Very Native Solution.. almost every big project use same.. but let consider the example.. when you am reading the particular file and request for the writing
come then writing operation have to wait till the reading operation complete and viceversa.

#2 Using Two Handle.... you have to open file in sharedenynone mode.. this will increase memory overhead.. each handle is to maintian it postion in the file.. also you have to do espeacial handlling of the updation of file..

so i believe Critical section Method is more suitable for you!

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
GeneralRe: Multithreading and ReadFile() / WriteFile() Pin
Halloko27-Feb-06 2:50
Halloko27-Feb-06 2:50 
QuestionData string Parsing Pin
srija25-Feb-06 8:24
srija25-Feb-06 8:24 
AnswerRe: Data string Parsing Pin
toxcct25-Feb-06 8:52
toxcct25-Feb-06 8:52 
GeneralRe: Data string Parsing Pin
srija28-Feb-06 0:16
srija28-Feb-06 0:16 
AnswerRe: Data string Parsing Pin
ThatsAlok26-Feb-06 22:51
ThatsAlok26-Feb-06 22:51 
QuestionGrid Control Pin
Tier525-Feb-06 8:08
Tier525-Feb-06 8:08 
AnswerRe: Grid Control Pin
toxcct25-Feb-06 8:54
toxcct25-Feb-06 8:54 
GeneralRe: Grid Control Pin
Tier525-Feb-06 10:34
Tier525-Feb-06 10:34 
Questioncall of .so file by java under linux Pin
ss200625-Feb-06 6:51
ss200625-Feb-06 6:51 
AnswerRe: call of .so file by java under linux Pin
Nemanja Trifunovic25-Feb-06 7:00
Nemanja Trifunovic25-Feb-06 7:00 
Questiondll under linux Pin
ss200625-Feb-06 6:19
ss200625-Feb-06 6:19 
AnswerRe: dll under linux Pin
Boris van de Laarschot25-Feb-06 6:29
Boris van de Laarschot25-Feb-06 6:29 
AnswerRe: dll under linux Pin
ThatsAlok26-Feb-06 22:31
ThatsAlok26-Feb-06 22:31 
Questionabout HotKey Pin
HOW WHAT25-Feb-06 4:45
HOW WHAT25-Feb-06 4:45 
QuestionBackup-programm for drivers Pin
Boris van de Laarschot25-Feb-06 4:27
Boris van de Laarschot25-Feb-06 4:27 
AnswerRe: Backup-programm for drivers Pin
Maximilien25-Feb-06 4:55
Maximilien25-Feb-06 4:55 
GeneralRe: Backup-programm for drivers Pin
Boris van de Laarschot25-Feb-06 5:28
Boris van de Laarschot25-Feb-06 5:28 

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.