Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Mark Salsbery1-Jul-08 13:34
Mark Salsbery1-Jul-08 13:34 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish1-Jul-08 14:48
Kiran Satish1-Jul-08 14:48 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Mark Salsbery2-Jul-08 5:19
Mark Salsbery2-Jul-08 5:19 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish5-Aug-08 12:22
Kiran Satish5-Aug-08 12:22 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Mark Salsbery6-Aug-08 6:49
Mark Salsbery6-Aug-08 6:49 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish6-Aug-08 10:00
Kiran Satish6-Aug-08 10:00 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Mark Salsbery7-Aug-08 5:41
Mark Salsbery7-Aug-08 5:41 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish7-Aug-08 6:45
Kiran Satish7-Aug-08 6:45 
I did some more tests and came to a conclusion that writing data to HDD is the only thing thats slowing down the loop randomly. Sometimes it wont and sometimes it does, very random, but most of the time its slows down and then gets back, doesnt matter if its FIFO structure or using fixed memory allocation. I did take out save image thread and copying image data directly into FIFO buffer (this is because I want to keep all the images in sequence without dropping any irrespective of the speed of writing thread) within the processing thread while using only one store image thread where the actual writing to HDD takes place from FIFO. Again, if I comment out just one line of writing data to HDD, everything works fine. Just for the Info, I have two 7.2k rpm SATA drives in RAID1.
The only solution I think of for now is, save the images in a big block of memory and write them to HDD once the loop is stopped, ofcourse this is not at all efficient way to go with and we can't run the loop for ever or to say there will be a limit of ~22sec continuous run.

PKNT

AnswerRe: Help on Multi-Threaded applicaiton Pin
Simon Cooke15-Oct-08 21:52
Simon Cooke15-Oct-08 21:52 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish6-Aug-08 13:33
Kiran Satish6-Aug-08 13:33 
QuestionGet Running Application's Main Window Pin
vikrant kpr27-Jun-08 12:22
vikrant kpr27-Jun-08 12:22 
Questionwinsock2 recv() returns empty buffer, but correct number of bytes received Pin
Member 427345427-Jun-08 11:14
Member 427345427-Jun-08 11:14 
AnswerRe: winsock2 recv() returns empty buffer, but correct number of bytes received Pin
Mark Salsbery28-Jun-08 11:15
Mark Salsbery28-Jun-08 11:15 
QuestionOLE Automation server's knowledge of client(s) Pin
garyflet27-Jun-08 6:11
garyflet27-Jun-08 6:11 
AnswerRe: OLE Automation server's knowledge of client(s) Pin
Roger Stoltz27-Jun-08 7:42
Roger Stoltz27-Jun-08 7:42 
QuestionRe: OLE Automation server's knowledge of client(s) Pin
garyflet27-Jun-08 8:27
garyflet27-Jun-08 8:27 
AnswerRe: OLE Automation server's knowledge of client(s) Pin
Roger Stoltz30-Jun-08 1:31
Roger Stoltz30-Jun-08 1:31 
Questionerror appear Pin
sofia_11127-Jun-08 5:32
sofia_11127-Jun-08 5:32 
AnswerRe: error appear Pin
led mike27-Jun-08 5:37
led mike27-Jun-08 5:37 
GeneralRe: error appear [modified] Pin
sofia_11127-Jun-08 7:03
sofia_11127-Jun-08 7:03 
QuestionRe: error appear Pin
CPallini27-Jun-08 9:40
mveCPallini27-Jun-08 9:40 
AnswerRe: error appear Pin
sofia_11127-Jun-08 12:54
sofia_11127-Jun-08 12:54 
AnswerRe: error appear Pin
Hamid_RT30-Jun-08 18:30
Hamid_RT30-Jun-08 18:30 
QuestionExtending Exchange Server Pin
Steve Thresher27-Jun-08 3:38
Steve Thresher27-Jun-08 3:38 
AnswerRe: Extending Exchange Server Pin
led mike27-Jun-08 5:35
led mike27-Jun-08 5:35 

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.