On Fri, Jun 29, 2001 at 03:44:03PM +0000, E.B. Dreger wrote:
> Again, I am *not* using pthreads.  Worker thread = totally separate
> process, created via rfork(2).  One process blocks, others continue
> running.

I can't see how you make shure that on SMP systems all CPUs have
the same meaning from memory content.
Normaly you would use a mutex or similar before accessing a data range
from another thread which also enshures that the CPU specific caches 
and buffers are syncronised.
If you don't do this it may happen that you write a variable and
another thread uses this variable using another CPU before the first
CPU has writen this memory seeable for others and works with an
outdated content.
A fresh rforked process with the same virtual memory should at least see
the version at the time of the rfork, so there is no problem if you
don't modify the common used content after rfork.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
[EMAIL PROTECTED]         Usergroup           [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to