On 5 Nov 2008 Rob Kendrick wrote:

> His point is that in a PMT system, such deadlocks cannot occur, but in
> a CMT system, enormous care must be taken to stop them being
> commonplace.

As I recall, and it's a long time since I worked on a CMT kernel, the 
golden rule was always to grab and release resources in a set sequence 
so that you avoid deadly embraces, but this case isn't quite that 
simple! The other rule is that you give up control to the scheduler 
every so often in case any higher priority task is waiting to run. In 
general I/O bound tasks are high priority and CPU intensive tasks are 
low priority.

-- 
 _
|_|. _   Richard Porter               http://www.minijem.plus.com/
|\_||_                                mailto:[EMAIL PROTECTED]
Disclaimer: I disclaim everything.

Reply via email to