How can I obtain good concurrent read performance from disk?
if THREAD A is reading from disk then wait for THREAD A to stop reading or wait for X ms
Read for X ms (or Y MB)
Stop reading and check status of thread A again
Tags: windows file-io multithreading
Source: By pauldoo as answer to the question
This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 2.5
Related code-snippets:
- Embedding Windows Media Player for all browsers. Will help in making it portable.
- Register Windows program with mailto protocol programmatically.
- How do I see preview JPEG file of PDF on Windows?
- What are the best ways to access Exchange using PHP?
- Visual Studio Setup Project - Per User Registry Settings.
- What is the best file copy alternative than the Windows defaults?
- How can I retrieve a windows filename?
- How do I install Debian in Windows?
- How do I read from a file that is actually being written to?
- Windows Equivalent of 'nice'.
- How do you create your own moniker (URL Protocol) on Windows systems?
- How do I make event callbacks into win forms thread safe?
- Registry vs. INI file for storing user configurable application settings. In Linux, registry vs. INI file for storing user configurable applications settings.
- How do you wait for thread to complete before continuing?
- Is lazy construction of singleton a thread safe?