On Nov 1, 2008, at 10:39 AM, Dr.Ruud wrote:

Gabor Szabo schreef:

I guess we can implement everything with fork but I think -
maybe because of my lack of experience in threads - that it will
be better to use them than to fork.

I think it was Randal Schwartz who said something like: If the answer
involves threads, then the question was wrong.

Most likely that quote comes from a year when multi-processor systems were not ubiquitous.

Every UI framework I've ever used was indeed written with a single- threaded event loop, but even in an editor it sure is handy to have background threads to do asynchronous work (syntax checking, rebuilding call graphs, Perl::Critic, etc) without having to explicitly chunk the work or coordinate multiple processes.

Chris

Reply via email to