![]() |
|
![]() | ||
|
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? | |
| |
| |
| |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
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? |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |