On 7/28/2010 6:18 PM, thyago wrote:
> I'm researching ways of updating a signature database on-the-fly, so the way
> clamAV does it, can really help me out...
> I mean, what structures are there? how is it implemented?
> Is there a data structure used to store the signatures on memory? If so, how
> exactly is it updated?
> what type of data structure? dynamic or static?
> I need to know if you guys use a pointer to the structure, and then just set
> it to point to the new updated structure,
> and if for example, there's a condition, that limits when this pointer can
> be changed...like a thread needing to finish first....
>
> I tried to look for the implementation on the code itself...but it's so
> big...i don't know in which file to look =/
>
>
>
> Thank you very much, for the help
>
> Thyago
Attached is my implementation. As you can see I use a RW lock to
minimize contention.
> I'm researching ways of updating a signature database on-the-fly, so the way
> clamAV does it, can really help me out...
> I mean, what structures are there? how is it implemented?
> Is there a data structure used to store the signatures on memory? If so, how
> exactly is it updated?
> what type of data structure? dynamic or static?
> I need to know if you guys use a pointer to the structure, and then just set
> it to point to the new updated structure,
> and if for example, there's a condition, that limits when this pointer can
> be changed...like a thread needing to finish first....
>
> I tried to look for the implementation on the code itself...but it's so
> big...i don't know in which file to look =/
>
>
>
> Thank you very much, for the help
>
> Thyago
Attached is my implementation. As you can see I use a RW lock to
minimize contention.