Gerald Gutierrez wrote:
>
>
> Non-Java processes don't have the problem because "processes" are
> heavyweight native threads, essentially. Non-Java threads MAY have the
> problem if they are not native threads.
>
> Assuming you are talking about Linux when you talk about G++, yes Linux
> implements a time slicing mechanism. I don't think it implements preemption.
>
This makes me wonder.
AFAIK, according to their definition, threads are supposed to be "lightweight"
processes.
How are linuxthreads actually implemented? ie, do we get the real lightweight
process that we are supposed to get by the pthreads definitions?
The descriptions seen in the discussion so far imply that this is not the case,
while it should be (and we should not have to worry that much about overhead ;-}
)
thanx,
Dimitris