Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWriteFile API performance abnormal Pin
denghp18-Jun-09 21:00
denghp18-Jun-09 21:00 
AnswerRe: WriteFile API performance abnormal Pin
chandu00418-Jun-09 21:07
chandu00418-Jun-09 21:07 
GeneralRe: WriteFile API performance abnormal Pin
denghp18-Jun-09 21:27
denghp18-Jun-09 21:27 
GeneralRe: WriteFile API performance abnormal Pin
chandu00418-Jun-09 21:36
chandu00418-Jun-09 21:36 
GeneralRe: WriteFile API performance abnormal Pin
denghp18-Jun-09 21:38
denghp18-Jun-09 21:38 
AnswerRe: WriteFile API performance abnormal Pin
Stuart Dootson18-Jun-09 22:32
professionalStuart Dootson18-Jun-09 22:32 
GeneralRe: WriteFile API performance abnormal Pin
denghp18-Jun-09 22:46
denghp18-Jun-09 22:46 
GeneralRe: WriteFile API performance abnormal Pin
chandu00418-Jun-09 22:54
chandu00418-Jun-09 22:54 
we faced the same problem long ago and we solved it by taking a circular queue.
btw, are you doing all theze in user mode or in kernel mode.
the thread which reads the data from a pci card puts it into a queue and another thread takes the data from the queue and writes it to a file.
since RAID supports upto 300mbps, when the system is busy, the data will get accumulated inthe queue and when the system has come out of the busy mode, the data will get vacated from the queue.
but be careful.
you should use proper synchronization mechanisms between threads.

--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.

GeneralRe: WriteFile API performance abnormal Pin
Stuart Dootson18-Jun-09 22:58
professionalStuart Dootson18-Jun-09 22:58 
GeneralRe: WriteFile API performance abnormal Pin
denghp18-Jun-09 23:12
denghp18-Jun-09 23:12 
GeneralRe: WriteFile API performance abnormal Pin
Stuart Dootson18-Jun-09 23:27
professionalStuart Dootson18-Jun-09 23:27 
AnswerRe: WriteFile API performance abnormal Pin
Michael Schubert19-Jun-09 0:03
Michael Schubert19-Jun-09 0:03 
Questioncreating own gps map in vc++ Pin
gpsmercato18-Jun-09 20:17
gpsmercato18-Jun-09 20:17 
AnswerRe: creating own gps map in vc++ Pin
chirag_chauhan18-Jun-09 20:47
chirag_chauhan18-Jun-09 20:47 
AnswerRe: creating own gps map in vc++ Pin
chandu00418-Jun-09 20:51
chandu00418-Jun-09 20:51 
GeneralRe: creating own gps map in vc++ Pin
gpsmercato18-Jun-09 21:13
gpsmercato18-Jun-09 21:13 
GeneralRe: creating own gps map in vc++ Pin
chandu00418-Jun-09 21:23
chandu00418-Jun-09 21:23 
GeneralRe: creating own gps map in vc++ Pin
gpsmercato18-Jun-09 22:22
gpsmercato18-Jun-09 22:22 
GeneralRe: creating own gps map in vc++ Pin
chandu00418-Jun-09 22:37
chandu00418-Jun-09 22:37 
General[Message Deleted] Pin
gpsmercato19-Jun-09 0:01
gpsmercato19-Jun-09 0:01 
JokeRe: creating own gps map in vc++ Pin
chandu00419-Jun-09 0:06
chandu00419-Jun-09 0:06 
GeneralRe: creating own gps map in vc++ Pin
gpsmercato19-Jun-09 0:34
gpsmercato19-Jun-09 0:34 
GeneralRe: creating own gps map in vc++ Pin
chandu00419-Jun-09 0:37
chandu00419-Jun-09 0:37 
GeneralRe: creating own gps map in vc++ Pin
gpsmercato19-Jun-09 0:51
gpsmercato19-Jun-09 0:51 
GeneralRe: creating own gps map in vc++ Pin
chandu00419-Jun-09 0:55
chandu00419-Jun-09 0:55 

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.