[Yaffs] Re: the occasion of GC

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wookey
Date:  
To: eq
CC: yaffs
Subject: [Yaffs] Re: the occasion of GC
On 2006-11-28 10:56 +0800, eq wrote:
> Hi:
>    Why not gc implement as a task .Now every time such as write ,gc  
> works,is it make write speed slow down?


It has to happen sometime. It doesn't take any less time just because
you did it in a thread. This way it is nice and predicatable and yaffs
remains simple and single-threaded which is good on simpler systems
and avoids a whole class of bugs.

There may be circumstances where a separate thread would make sense.
Does you situation really need threaded GC?

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/                 play: http://wookware.org/