Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2000 22:12:35 -0500 (EST)
From:      Zhiui Zhang <zzhang@cs.binghamton.edu>
To:        freebsd-hackers@freebsd.org, freebsd-smp@freebsd.org
Subject:   simple lock and the lost wakeup problem
Message-ID:  <Pine.SOL.4.21.0011112158540.13428-100000@opal>

next in thread | raw e-mail | index | archive | help

I am new to SMP subject and have some questions to ask:

Is the simplelock() really needed since FreeBSD is using the big giant
lock and the kernel is non preemptive? Or has FreeBSD changed the big
giant lock and made kernel thread preemptive? Uresha Vahalia talks about
Lost Wakeup Problem (page 196), the test of the resource and sleep() has
to be done atomically. Which correct mechanism should I use on FreeBSD to
achieve this (avoid the lost-wakeup problem)?

Any help is appreciated.

-Zhihui



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0011112158540.13428-100000>