[Xitami] SMP Problem (WAS: Xitami 2.4d9/Xitami 2.5b5)
Ewen McNeill
xitami@lists.xitami.org
Mon, 25 Jun 2001 22:03:06 +1200
In message <42702@dsl.co.uk>, Brian {Hamilton Kelly} writes:
>AIUI, under Linux, creating a separate execution thread is almost as
>costly as forking another process, so programs tend to do the latter
>rather than the former. In contrast under OS/2, spawning a thread is a
>very cheap operation, so multi-threaded programs are more common.
Under Linux creating a new process (with fork()) is almost as cheap as
creating a new thread -- which is what you said, but the emphasis is
that creating a new process is cheap. (Starting a new program in that
process costs more; more like starting a new process in OS/2.)
Traditionally unix does not have threads, and even those unixes that do,
do not have them in a widely portable fashion. So processes tend to get
used instead.
However as I said, Xitami tries to buck this trend and be single
threaded, single process -- which has its advantages and disadvantages.
All that said, I'm puzzled what could be causing your problem on a SMP
machine, which is fixed by running it on a single processor, if it isn't
a threading issue.
Can you tell me what build flags you used to build Xitami? And which
version of the compiler and build environment?
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com