On Thu, 2005-05-26 at 18:56 +0800, Paolo Alexis Falcone wrote:
> On 5/26/05, Dean Michael C. Berris <[EMAIL PROTECTED]> wrote:
> >
> > 
> > And while I'm on the subject of grep being concurrent, would fork be
> > more portable than pthreads? Or would pthreads consume "less resources"
> > on linux at least?
> 
> Linux implements fork() using COW pages, so there's not much penalty
> as opposed to using a more traditional Unix variant. However, if the
> grep variant you want to develop would be able to exploit SMT and/or
> SMP capabilities when doing a recursive search then it might be
> interesting.
> 

I am thinking of implementing the fork/threading when processing more
than one file -- may it be recursively in a directory, or when provided
a list of files on the command-line. I'm still waiting for a "less
hectic" time to actually implement it, and read through the grep sources
first before I even try writing the code. :)

-- 
Dean Michael C. Berris
< [EMAIL PROTECTED] >
GPG Key: 0x08AE6EAC
http://mikhailberis.blogspot.com
Mobile: +63 921 7841815

Attachment: signature.asc
Description: This is a digitally signed message part

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to