Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Should I reduce my Task's priority before it writes to the hard drive?: (2 Items)
   
Should I reduce my Task's priority before it writes to the hard drive?  
Hi,

Should I reduce my Task's priority before it writes to the hard drive?

Or is it handled like I would expect by the hard drive driver?

For example: a high priority task wants to write a huge file to the hard drive. Does it block other tasks while the 
operation is ongoing?
Re: Should I reduce my Task's priority before it writes to the hard drive?  
Now the question is what you exactly expect.
In general, setting any thread that does time consuming operations to a high priority is asking for trouble. As for 
writing to disk, your thread will block any lower priority threads when your thread has anything to do, which you should
 expect. In reality, this will be when copying data. What's really time consuming is transferring the data to and 
committing to disk but this does not use the CPU. So both your thread and the driver thread are blocked most of the time
 and lower priority threads in the system are able to run.

As always, data is king so please benchmark.

--
Mate

From: Tier Befreier
Sent: Friday, October 4, 2013 15:29 PM
To: general-filesystems
Reply To: general-filesystems@community.qnx.com
Subject: Should I reduce my Task's priority before it writes to the hard drive?


Hi,

Should I reduce my Task's priority before it writes to the hard drive?

Or is it handled like I would expect by the hard drive driver?

For example: a high priority task wants to write a huge file to the hard drive. Does it block other tasks while the 
operation is ongoing?



_______________________________________________

General
http://community.qnx.com/sf/go/post105628
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime18582 3.4 KB