Google Answers Logo
View Question
 
Q: High Priority Thread Must Not Block ( No Answer,   3 Comments )
Question  
Subject: High Priority Thread Must Not Block
Category: Computers > Programming
Asked by: jamieyukes-ga
List Price: $24.68
Posted: 11 May 2005 06:29 PDT
Expires: 10 Jun 2005 06:29 PDT
Question ID: 520415
I'm working on a Windows VoIP application.  The high priority thread
must continue sending  audio data to the network every 20ms.  However,
I wish to save the audio to disk too.

WriteFile to local disk doesn't seem to return quick enough if the
disk subsystem is busy.  How can I get the data to disk without
blocking the high priority thread?

Request for Question Clarification by lazerfx-ga on 12 May 2005 05:25 PDT
What language are you using to create the application, as the
methodology is different depending on the language.

Clarification of Question by jamieyukes-ga on 12 May 2005 06:45 PDT
C++ ... Visual C++ 6.0

Request for Question Clarification by lazerfx-ga on 12 May 2005 07:08 PDT
Have you tried using StreamIO?

Clarification of Question by jamieyukes-ga on 13 May 2005 13:19 PDT
I have never heard of StreamIO.
And I'm not getting super definitive results from Google.

Clarification of Question by jamieyukes-ga on 23 May 2005 20:41 PDT
Only Windows 2000
Answer  
There is no answer at this time.

Comments  
Subject: Re: High Priority Thread Must Not Block
From: loliveira-ga on 23 May 2005 15:20 PDT
 
This program must work in windows 95/98/me or just Windows 2k and XP?
Subject: Re: High Priority Thread Must Not Block
From: coloradite-ga on 24 May 2005 12:14 PDT
 
Create another thread responsible for writing to disk. While sending
audio data on the network the high priority thread puts it in a queue
that is read by the disk writer thread and written to disk. That way
your high priority thread does not block on disk IO and your disk
writer thread writes the data when time is available to it.
Subject: Re: High Priority Thread Must Not Block
From: jamieyukes-ga on 25 May 2005 13:17 PDT
 
coloradite,

Many queues require synchronization.
Is there a good queue implementation that will never cause the Writer
to block or be interrupted?

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy